diff options
author | Richard Henderson <rth@twiddle.net> | 2015-09-03 11:36:02 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2016-07-12 11:02:24 -0700 |
commit | 0cc1f4bf76a20c7fee0bab5c9bba9ad7302198b5 (patch) | |
tree | b5ccd4d3ca96a40bb31ce1357e32febfb6cb7e33 /target-sparc/translate.c | |
parent | 1d854963ea340855efe3f8a5b99c95a75bd717ae (diff) |
target-sparc: Use defines from asi.h
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-sparc/translate.c')
-rw-r--r-- | target-sparc/translate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 886e132adc..886586410d 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -31,6 +31,7 @@ #include "trace-tcg.h" #include "exec/log.h" +#include "asi.h" #define DEBUG_DISAS @@ -1999,8 +2000,9 @@ static DisasASI get_asi(DisasContext *dc, int insn) } else if (supervisor(dc) /* Note that LEON accepts ASI_USERDATA in user mode, for use with CASA. Also note that previous versions of - QEMU allowed ASI_P for LEON, which is incorrect. */ - || (asi == 0xa + QEMU allowed (and old versions of gcc emitted) ASI_P + for LEON, which is incorrect. */ + || (asi == ASI_USERDATA && (dc->def->features & CPU_FEATURE_CASA))) { } else { gen_exception(dc, TT_PRIV_INSN); |