From ba1fc78f65fdea9d4b14d6449514c1351ad64fa4 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 23 Sep 2015 10:12:16 -0700 Subject: target-tilegx: Implement crc instructions Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'target-tilegx/translate.c') diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 6bfb1af2c8..3e5a8ea049 100644 --- a/target-tilegx/translate.c +++ b/target-tilegx/translate.c @@ -750,9 +750,15 @@ static TileExcp gen_rrr_opcode(DisasContext *dc, unsigned opext, case OE_RRR(CMULHR, 0, X0): case OE_RRR(CMULH, 0, X0): case OE_RRR(CMUL, 0, X0): + return TILEGX_EXCP_OPCODE_UNIMPLEMENTED; case OE_RRR(CRC32_32, 0, X0): + gen_helper_crc32_32(tdest, tsrca, tsrcb); + mnemonic = "crc32_32"; + break; case OE_RRR(CRC32_8, 0, X0): - return TILEGX_EXCP_OPCODE_UNIMPLEMENTED; + gen_helper_crc32_8(tdest, tsrca, tsrcb); + mnemonic = "crc32_8"; + break; case OE_RRR(DBLALIGN2, 0, X0): case OE_RRR(DBLALIGN2, 0, X1): gen_dblaligni(tdest, tsrca, tsrcb, 16); -- cgit v1.2.3