diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:02 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:02 -0500 |
commit | 4f08b52af280d3e22a016544727a564baace4327 (patch) | |
tree | 03b9dd78cdb4f72e265edb7305dbde5e8c3477c0 /src | |
parent | bf903ec9a111bab252744696dc83ecf8d8922505 (diff) | |
download | gem5-4f08b52af280d3e22a016544727a564baace4327.tar.xz |
ARM: Get rid of unnecessary flag calculating functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/arm/insts/static_inst.cc | 26 | ||||
-rw-r--r-- | src/arch/arm/insts/static_inst.hh | 6 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/arch/arm/insts/static_inst.cc b/src/arch/arm/insts/static_inst.cc index 6d52112e0..61a1ebde6 100644 --- a/src/arch/arm/insts/static_inst.cc +++ b/src/arch/arm/insts/static_inst.cc @@ -205,32 +205,6 @@ ArmStaticInstBase::shift_carry_rs(uint32_t base, uint32_t shamt, } -// Generate the appropriate carry bit for an addition operation -bool -ArmStaticInstBase::arm_add_carry(int32_t result, int32_t lhs, int32_t rhs) const -{ - return findCarry(32, result, lhs, rhs); -} - -// Generate the appropriate carry bit for a subtraction operation -bool -ArmStaticInstBase::arm_sub_carry(int32_t result, int32_t lhs, int32_t rhs) const -{ - return findCarry(32, result, lhs, ~rhs); -} - -bool -ArmStaticInstBase::arm_add_overflow(int32_t result, int32_t lhs, int32_t rhs) const -{ - return findOverflow(32, result, lhs, rhs); -} - -bool -ArmStaticInstBase::arm_sub_overflow(int32_t result, int32_t lhs, int32_t rhs) const -{ - return findOverflow(32, result, lhs, ~rhs); -} - void ArmStaticInstBase::printReg(std::ostream &os, int reg) const { diff --git a/src/arch/arm/insts/static_inst.hh b/src/arch/arm/insts/static_inst.hh index 81b480e02..e0d268979 100644 --- a/src/arch/arm/insts/static_inst.hh +++ b/src/arch/arm/insts/static_inst.hh @@ -60,12 +60,6 @@ class ArmStaticInstBase : public StaticInst bool shift_carry_rs(uint32_t base, uint32_t shamt, uint32_t type, uint32_t cfval) const; - bool arm_add_carry(int32_t result, int32_t lhs, int32_t rhs) const; - bool arm_sub_carry(int32_t result, int32_t lhs, int32_t rhs) const; - - bool arm_add_overflow(int32_t result, int32_t lhs, int32_t rhs) const; - bool arm_sub_overflow(int32_t result, int32_t lhs, int32_t rhs) const; - // Constructor ArmStaticInstBase(const char *mnem, ExtMachInst _machInst, OpClass __opClass) |