Add 8 bit arithmetic to sim-alu.
Fix flags (Carry, oVerflow) for negate and subtract. Add ALU*_RESULT macros for accessing final result of ALU op.
This commit is contained in:
parent
66a6a38139
commit
0a0ecb2120
3 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
|
||||
brace from macro.
|
||||
(ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
|
||||
(ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
|
||||
(ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
|
||||
(ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
|
||||
|
||||
Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* sim-core.h (struct _sim_core_mapping): Change free_buffer to
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
Fri Oct 17 17:26:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* alu.h (ALU32_END): Use ALU32_RESULT.
|
||||
|
||||
Mon Sep 29 12:49:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* insns (get_fp_reg, set_fp_reg): Update to use changed sim_fpu
|
||||
|
|
|
@ -27,8 +27,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#define ALU32_END(TARG) \
|
||||
{ \
|
||||
(TARG) = (unsigned32)alu_carry_val; /* FIXME */ \
|
||||
}}
|
||||
(TARG) = ALU32_RESULT; /* FIXME */ \
|
||||
}
|
||||
|
||||
#define ALU_END(TARG) ALU32_END(TARG)
|
||||
|
||||
|
|
Loading…
Reference in a new issue