diff options
author | Richard Henderson <rth@twiddle.net> | 2013-03-11 22:41:47 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-07-09 07:14:09 -0700 |
commit | ca675f46e695bd49a1c21a5e82c6b8c77ee12edf (patch) | |
tree | 5c23738b2e2462a15e55fb5a963dd44a0df82eb6 /tcg/arm/tcg-target.h | |
parent | cc7772bdbe4cb0ff1bac538bda86260b871d8b1a (diff) | |
download | qemu-ca675f46e695bd49a1c21a5e82c6b8c77ee12edf.zip qemu-ca675f46e695bd49a1c21a5e82c6b8c77ee12edf.tar.gz qemu-ca675f46e695bd49a1c21a5e82c6b8c77ee12edf.tar.bz2 |
tcg: Split rem requirement from div requirement
There are several hosts with only a "div" insn. Remainder is computed
manually from the quotient and inputs. We can do this generically.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/arm/tcg-target.h')
-rw-r--r-- | tcg/arm/tcg-target.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 3be41cc..2c5b4e7 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -76,8 +76,10 @@ typedef enum { #ifdef __ARM_ARCH_EXT_IDIV__ #define TCG_TARGET_HAS_div_i32 1 +#define TCG_TARGET_HAS_rem_i32 1 #else #define TCG_TARGET_HAS_div_i32 0 +#define TCG_TARGET_HAS_rem_i32 0 #endif extern bool tcg_target_deposit_valid(int ofs, int len); |