diff options
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/crisv32-decode.h | 3 | ||||
-rw-r--r-- | target-cris/translate.c | 16 |
2 files changed, 17 insertions, 2 deletions
diff --git a/target-cris/crisv32-decode.h b/target-cris/crisv32-decode.h index 5d30dcc4be..3a515c4a05 100644 --- a/target-cris/crisv32-decode.h +++ b/target-cris/crisv32-decode.h @@ -124,3 +124,6 @@ #define DEC_BASC_IM {B8(11101111), B8(11111111)} #define DEC_MOVEM_MR {B8(10111011), B8(10111111)} #define DEC_MOVEM_RM {B8(10111111), B8(10111111)} + +#define DEC_FTAG_FIDX_D_M {B8(10101011), B8(11111111)} +#define DEC_FTAG_FIDX_I_M {B8(11010011), B8(11111111)} diff --git a/target-cris/translate.c b/target-cris/translate.c index 3a5e5eb1ba..d8cfda5559 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -2123,6 +2123,18 @@ static unsigned int dec_rfe_etc(DisasContext *dc) return 2; } +static unsigned int dec_ftag_fidx_d_m(DisasContext *dc) +{ + /* Ignore D-cache flushes. */ + return 2; +} + +static unsigned int dec_ftag_fidx_i_m(DisasContext *dc) +{ + /* Ignore I-cache flushes. */ + return 2; +} + static unsigned int dec_null(DisasContext *dc) { printf ("unknown insn pc=%x opc=%x op1=%x op2=%x\n", @@ -2213,8 +2225,8 @@ struct decoder_info { {DEC_NEG_R, dec_neg_r}, {DEC_MOVE_R, dec_move_r}, - /* ftag_fidx_i_m. */ - /* ftag_fidx_d_m. */ + {DEC_FTAG_FIDX_I_M, dec_ftag_fidx_i_m}, + {DEC_FTAG_FIDX_D_M, dec_ftag_fidx_d_m}, {DEC_MULS_R, dec_muls_r}, {DEC_MULU_R, dec_mulu_r}, |