diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-30 05:58:12 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-30 06:02:27 -0500 |
commit | 2a2757ac7e849aa35fc519ddfcc8688a46b60448 (patch) | |
tree | 3b6a6491587d047ab858e4ea0c6de0310ef58b07 /sim/h8300/ChangeLog | |
parent | 4ca9d09e826e959f382ab45b2e1dfa8125135124 (diff) | |
download | gdb-2a2757ac7e849aa35fc519ddfcc8688a46b60448.zip gdb-2a2757ac7e849aa35fc519ddfcc8688a46b60448.tar.gz gdb-2a2757ac7e849aa35fc519ddfcc8688a46b60448.tar.bz2 |
sim: h8300: simplify h8300_reg_{fetch,store} funcs
We can leverage the cpu->regs array rather than going through the
function helpers to get nice compact code.
Further, fix up the return values: return -1 when we can't find a
register (and let the caller write out warnings), return 2/4 when
we actually write out that amount, and handle the zero reg.
Diffstat (limited to 'sim/h8300/ChangeLog')
-rw-r--r-- | sim/h8300/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index 6878ab9..834fcec 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,5 +1,17 @@ 2015-12-30 Mike Frysinger <vapier@gentoo.org> + * compile.c (h8300_reg_store): Delete sd. Change init_pointers to + use CPU_STATE (cpu). Change h8_set_pc to cpu->pc. Return -1 and + drop the printf if the default case. Change all the set func calls + to use cpu->regs[rn] instead. + (h8300_reg_store): Delete sd. Change init_pointers to + use CPU_STATE (cpu). Change h8_get_pc to cpu->pc. Return -1 and + drop the printf if the default case. Change all the get func calls + to use cpu->regs[rn] instead. Add ZERO_REGNUM case. Return 2 and + 4 instead of -1 at the end. + +2015-12-30 Mike Frysinger <vapier@gentoo.org> + * compile.c (lvalue): Change sim_engine_set_run_state calls to sim_engine_halt. Declare local cpu. (fetch_1): Likewise. |