qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v8 15/37] target/mips: Style improvements in mips_malta.c


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v8 15/37] target/mips: Style improvements in mips_malta.c
Date: Fri, 6 Dec 2019 18:46:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

Hi Aleksandar,

On 8/19/19 4:47 PM, Aleksandar Rikalo wrote:
From: Aleksandar Markovic <address@hidden>
 > Sent: Monday, August 19, 2019 2:07 PM
 > To: address@hidden <address@hidden>
> Cc: address@hidden <address@hidden>; Aleksandar Markovic <address@hidden>; Aleksandar Rikalo <address@hidden> > Subject: [EXTERNAL][PATCH v8 15/37] target/mips: Style improvements in mips_malta.c
 >
 > From: Aleksandar Markovic <address@hidden>
 >
 > Fixes mostly errors and warnings reported by 'checkpatch.pl -f'.
 >
 > Signed-off-by: Aleksandar Markovic <address@hidden>
 > ---
>  hw/mips/mips_malta.c | 216 ++++++++++++++++++++++++++++++---------------------
 >  1 file changed, 128 insertions(+), 88 deletions(-)
 >
 > diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c
[...]>  > @@ -347,7 +362,8 @@ static uint64_t malta_fpga_read(void *opaque,
hwaddr addr,
 >
 >      /* SWITCH Register */
 >      case 0x00200:
 > -        val = 0x00000000;              /* All switches closed */
 > +        /* ori a3, a3, low(ram_low_size) */

I'm not sure what happened here, this change is incorrect.

 > +        val = 0x00000000;
 >          break;
 >
 >      /* STATUS Register */
> @@ -386,10 +402,11 @@ static uint64_t malta_fpga_read(void *opaque, hwaddr addr,
 >      /* GPINP Register */
 >      case 0x00a08:
 >          /* IN = OUT until a real I2C control is implemented */
 > -        if (s->i2csel)
 > +        if (s->i2csel) {
 >              val = s->i2cout;
 > -        else
 > +        } else {
 >              val = 0x00;
 > +        }
 >          break;
 >
[...]

Reviewed-by: Aleksandar Rikalo <address@hidden>





reply via email to

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