mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
lasi: checkpatch fixes
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-24-mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
0db9350e6e
commit
63588da809
@ -169,10 +169,11 @@ static MemTxResult lasi_chip_write_with_attrs(void *opaque, hwaddr addr,
|
||||
break;
|
||||
case LASI_IMR:
|
||||
s->imr = val;
|
||||
if (((val & LASI_IRQ_BITS) != val) && (val != 0xffffffff))
|
||||
if (((val & LASI_IRQ_BITS) != val) && (val != 0xffffffff)) {
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"LASI: tried to set invalid %lx IMR value.\n",
|
||||
(unsigned long) val);
|
||||
}
|
||||
break;
|
||||
case LASI_IPR:
|
||||
/* Any write to IPR clears the register. */
|
||||
@ -200,8 +201,9 @@ static MemTxResult lasi_chip_write_with_attrs(void *opaque, hwaddr addr,
|
||||
break;
|
||||
|
||||
case LASI_PCR:
|
||||
if (val == 0x02) /* immediately power off */
|
||||
if (val == 0x02) { /* immediately power off */
|
||||
qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
|
||||
}
|
||||
break;
|
||||
case LASI_ERRLOG:
|
||||
s->errlog = val;
|
||||
|
Loading…
Reference in New Issue
Block a user