summary refs log tree commit diff stats
path: root/hw/avr/arduino.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-04-20 19:49:40 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-05-02 16:49:34 +0200
commit84c2fdc397b6609d1cef76aec2f1367139d1372e (patch)
tree026a408aafdf5dfe159a336eb3ed22cb76d94f44 /hw/avr/arduino.c
parentbcad139192b0101e3d7ef593144c314bed4cb8c2 (diff)
downloadfocaccia-qemu-84c2fdc397b6609d1cef76aec2f1367139d1372e.tar.gz
focaccia-qemu-84c2fdc397b6609d1cef76aec2f1367139d1372e.zip
target/mips: Fix CACHEE opcode (CACHE using EVA addressing)
The CACHEE opcode "requires CP0 privilege".

The pseudocode checks in the ISA manual is:

    if is_eva and not C0.Config5.EVA:
      raise exception('RI')

    if not IsCoprocessor0Enabled():
      raise coprocessor_exception(0)

Add the missing checks.

Inspired-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210420175426.1875746-1-f4bug@amsat.org>
Diffstat (limited to 'hw/avr/arduino.c')
0 files changed, 0 insertions, 0 deletions