On 18/07/2017 12:55, James Hogan wrote:
> Implement decoding of MIPS32 EVA loads and stores. These access the user
> address space from kernel mode when implemented, so for each instruction
> we need to check that EVA is available from Config5.EVA & check for
> sufficient COP0 privilege (with the new check_eva()), and then override
> the mem_idx used for the operation.
> 
> Unfortunately some Loongson 2E instructions use overlapping encodings,
> so we must be careful not to prevent those from being decoded when EVA
> is absent.
> 
> Signed-off-by: James Hogan <james.ho...@imgtec.com>
> Cc: Yongbok Kim <yongbok....@imgtec.com>
> Cc: Aurelien Jarno <aurel...@aurel32.net>
> ---
> Changes in v2:
> - Fix typo in commit message (Yongbok).
> - Use sextract32 (Yongbok).
> ---
>  target/mips/translate.c | 106 +++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 106 insertions(+), 0 deletions(-)
> 

Reviewed-by: Yongbok Kim <yongbok....@imgtec.com>



Reply via email to