diff options
author | Richard Henderson | 2016-11-16 11:48:37 +0100 |
---|---|---|
committer | Richard Henderson | 2017-01-10 17:06:11 +0100 |
commit | b79ea941d6be8b64bdfa53bd4a1c09e72fd505a8 (patch) | |
tree | 8e385f613492a79db7482a24866e81f86512c457 /target/xtensa/op_helper.c | |
parent | target-unicore32: Use clz opcode (diff) | |
download | qemu-b79ea941d6be8b64bdfa53bd4a1c09e72fd505a8.tar.gz qemu-b79ea941d6be8b64bdfa53bd4a1c09e72fd505a8.tar.xz qemu-b79ea941d6be8b64bdfa53bd4a1c09e72fd505a8.zip |
target-xtensa: Use clz opcode
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/xtensa/op_helper.c')
-rw-r--r-- | target/xtensa/op_helper.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/target/xtensa/op_helper.c b/target/xtensa/op_helper.c index 0a4b2147bc..dc25625d0d 100644 --- a/target/xtensa/op_helper.c +++ b/target/xtensa/op_helper.c @@ -161,19 +161,6 @@ void HELPER(debug_exception)(CPUXtensaState *env, uint32_t pc, uint32_t cause) HELPER(exception)(env, EXC_DEBUG); } -uint32_t HELPER(nsa)(uint32_t v) -{ - if (v & 0x80000000) { - v = ~v; - } - return v ? clz32(v) - 1 : 31; -} - -uint32_t HELPER(nsau)(uint32_t v) -{ - return v ? clz32(v) : 32; -} - static void copy_window_from_phys(CPUXtensaState *env, uint32_t window, uint32_t phys, uint32_t n) { |