aboutsummaryrefslogtreecommitdiff
path: root/sim/sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-30 05:58:12 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-30 06:02:27 -0500
commit2a2757ac7e849aa35fc519ddfcc8688a46b60448 (patch)
tree3b6a6491587d047ab858e4ea0c6de0310ef58b07 /sim/sh
parent4ca9d09e826e959f382ab45b2e1dfa8125135124 (diff)
downloadgdb-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/sh')
0 files changed, 0 insertions, 0 deletions