qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH v1 06/11] ppc/xics: Make the ICSState a list


From: Nikunj A Dadhania
Subject: Re: [Qemu-ppc] [PATCH v1 06/11] ppc/xics: Make the ICSState a list
Date: Mon, 27 Jun 2016 10:29:41 +0530
User-agent: Notmuch/0.21 (https://notmuchmail.org) Emacs/25.0.94.1 (x86_64-redhat-linux-gnu)

David Gibson <address@hidden> writes:

>>  static void xics_kvm_class_init(ObjectClass *oc, void *data)
>> diff --git a/hw/intc/xics_spapr.c b/hw/intc/xics_spapr.c
>> index eda15a6..b03dd0d 100644
>> --- a/hw/intc/xics_spapr.c
>> +++ b/hw/intc/xics_spapr.c
>> @@ -113,10 +113,10 @@ static void rtas_set_xive(PowerPCCPU *cpu, 
>> sPAPRMachineState *spapr,
>>                            uint32_t nargs, target_ulong args,
>>                            uint32_t nret, target_ulong rets)
>>  {
>> -    ICSState *ics = spapr->xics->ics;
>> +    ICSState *ics = QLIST_FIRST(&spapr->xics->ics);
>>      uint32_t nr, server, priority;
>>  
>> -    if ((nargs != 3) || (nret != 1)) {
>> +    if ((nargs != 3) || (nret != 1) || !ics) {
>>          rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
>>          return;
>
> !ice should surely be an assert, or at least a HW_ERROR, not a PARAM_ERROR.

Sure, will make those changes

Regards
Nikunj




reply via email to

[Prev in Thread] Current Thread [Next in Thread]