diff options
author | Richard Henderson <rth@twiddle.net> | 2016-11-21 12:10:28 +0100 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2017-01-10 08:49:59 -0800 |
commit | 3253cddd21ab288fa94cb6c8b9ec9fe9a7fcb3e5 (patch) | |
tree | 555439c14adad7e754558ce408ddb57404bd97ab /target | |
parent | 08da3180dca8d41881b321d43944d97a838792fa (diff) | |
download | qemu-3253cddd21ab288fa94cb6c8b9ec9fe9a7fcb3e5.zip qemu-3253cddd21ab288fa94cb6c8b9ec9fe9a7fcb3e5.tar.gz qemu-3253cddd21ab288fa94cb6c8b9ec9fe9a7fcb3e5.tar.bz2 |
target-tilegx: Use ctpop helper
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target')
-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 b6f5e29..4964bb9 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 bab303a..16745c2 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 8a2df1b..ff2ef7b 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): |