Re: [PATCH] target/mips: Fix CACHEE opcode (CACHE using EVA addressing)

2021-04-27 Thread Philippe Mathieu-Daudé
On 4/20/21 7:54 PM, Philippe Mathieu-Daudé wrote: > 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) >

Re: [PATCH] target/mips: Fix CACHEE opcode (CACHE using EVA addressing)

2021-04-20 Thread Richard Henderson
On 4/20/21 10:54 AM, Philippe Mathieu-Daudé wrote: 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 mis

[PATCH] target/mips: Fix CACHEE opcode (CACHE using EVA addressing)

2021-04-20 Thread Philippe Mathieu-Daudé
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 Signed-off-