Hi Aleksandar,
On 8/19/19 4:47 PM, Aleksandar Rikalo wrote:
From: Aleksandar Markovic <aleksandar.marko...@rt-rk.com>
> Sent: Monday, August 19, 2019 2:07 PM
> To: qemu-devel@nongnu.org <qemu-devel@nongnu.org>
> Cc: phi...@redhat.com <phi...@redhat.com>; Aleksandar Markovic
<amarko...@wavecomp.com>; Aleksandar Rikalo <arik...@wavecomp.com>
> Subject: [EXTERNAL][PATCH v8 15/37] target/mips: Style improvements
in mips_malta.c
>
> From: Aleksandar Markovic <amarko...@wavecomp.com>
>
> Fixes mostly errors and warnings reported by 'checkpatch.pl -f'.
>
> Signed-off-by: Aleksandar Markovic <amarko...@wavecomp.com>
> ---
> 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 <arik...@wavecomp.com>