diff options
Diffstat (limited to 'target/tilegx')
-rw-r--r-- | target/tilegx/helper.c | 5 | ||||
-rw-r--r-- | target/tilegx/helper.h | 1 | ||||
-rw-r--r-- | target/tilegx/translate.c | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/target/tilegx/helper.c b/target/tilegx/helper.c index b6f5e29ddd..4964bb9111 100644 --- a/target/tilegx/helper.c +++ b/target/tilegx/helper.c @@ -55,11 +55,6 @@ void helper_ext01_ics(CPUTLGState *env) } } -uint64_t helper_pcnt(uint64_t arg) -{ - return ctpop64(arg); -} - uint64_t helper_revbits(uint64_t arg) { return revbit64(arg); diff --git a/target/tilegx/helper.h b/target/tilegx/helper.h index bab303a8d1..16745c266f 100644 --- a/target/tilegx/helper.h +++ b/target/tilegx/helper.h @@ -1,6 +1,5 @@ DEF_HELPER_2(exception, noreturn, env, i32) DEF_HELPER_1(ext01_ics, void, env) -DEF_HELPER_FLAGS_1(pcnt, TCG_CALL_NO_RWG_SE, i64, i64) DEF_HELPER_FLAGS_1(revbits, TCG_CALL_NO_RWG_SE, i64, i64) DEF_HELPER_FLAGS_3(shufflebytes, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64) DEF_HELPER_FLAGS_2(crc32_8, TCG_CALL_NO_RWG_SE, i64, i64, i64) diff --git a/target/tilegx/translate.c b/target/tilegx/translate.c index 8a2df1b272..ff2ef7b63d 100644 --- a/target/tilegx/translate.c +++ b/target/tilegx/translate.c @@ -697,7 +697,7 @@ static TileExcp gen_rr_opcode(DisasContext *dc, unsigned opext, break; case OE_RR_X0(PCNT): case OE_RR_Y0(PCNT): - gen_helper_pcnt(tdest, tsrca); + tcg_gen_ctpop_tl(tdest, tsrca); mnemonic = "pcnt"; break; case OE_RR_X0(REVBITS): |