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/sh | |
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/sh')
0 files changed, 0 insertions, 0 deletions