diff options
author | Nick Clifton <nickc@redhat.com> | 2010-11-05 11:08:27 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2010-11-05 11:08:27 +0000 |
commit | d75d1c9fe1b42014a16a3a23972d6e8683a7a4f3 (patch) | |
tree | a641afb791586373cda7ee780fac8b4ff52a0856 /gas/config/tc-cr16.c | |
parent | 9b585a95b7c5e7957a40f43248abc54b8c7eb046 (diff) | |
download | gdb-d75d1c9fe1b42014a16a3a23972d6e8683a7a4f3.zip gdb-d75d1c9fe1b42014a16a3a23972d6e8683a7a4f3.tar.gz gdb-d75d1c9fe1b42014a16a3a23972d6e8683a7a4f3.tar.bz2 |
* config/tc-cr16.c (getprocreg_image): Fix typo MAX_PREG ->
MAX_REG.
(getprocregp_image): Likewise.
Diffstat (limited to 'gas/config/tc-cr16.c')
-rw-r--r-- | gas/config/tc-cr16.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index 2a5b2f7..a6185f9 100644 --- a/gas/config/tc-cr16.c +++ b/gas/config/tc-cr16.c @@ -1669,7 +1669,7 @@ getprocreg_image (reg r) char *reg_name; /* Check whether the register is in registers table. */ - if (r < MAX_PREG) + if (r < MAX_REG) rreg = &cr16_pregtab[r - MAX_REG]; /* Register not found. */ else @@ -1708,7 +1708,7 @@ getprocregp_image (reg r) int pregptab_disp = 0; /* Check whether the register is in registers table. */ - if (r < MAX_PREG) + if (r < MAX_REG) { r = r - MAX_REG; switch (r) |