projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preserve selected thread in all-stop w/ background execution
[deliverable/binutils-gdb.git]
/
opcodes
/
moxie-dis.c
diff --git
a/opcodes/moxie-dis.c
b/opcodes/moxie-dis.c
index cbfcf958806831bcd32b85eca1fdb9f891e6e65b..06580abe28f8fb7ca29a9220bf7928dab9c92be7 100644
(file)
--- a/
opcodes/moxie-dis.c
+++ b/
opcodes/moxie-dis.c
@@
-1,5
+1,5
@@
/* Disassemble moxie instructions.
/* Disassemble moxie instructions.
- Copyright (C) 2009-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2009-20
20
Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
This file is part of the GNU opcodes library.
@@
-33,7
+33,7
@@
static void *stream;
/* Macros to extract operands from the instruction word. */
#define OP_A(i) ((i >> 4) & 0xf)
#define OP_B(i) (i & 0xf)
/* Macros to extract operands from the instruction word. */
#define OP_A(i) ((i >> 4) & 0xf)
#define OP_B(i) (i & 0xf)
-#define INST2OFFSET(o) (((((o) & 0x3ff) ^ 0x200) - 0x200)
<< 1
)
+#define INST2OFFSET(o) (((((o) & 0x3ff) ^ 0x200) - 0x200)
* 2
)
static const char * reg_names[16] =
{ "$fp", "$sp", "$r0", "$r1", "$r2", "$r3", "$r4", "$r5",
static const char * reg_names[16] =
{ "$fp", "$sp", "$r0", "$r1", "$r2", "$r3", "$r4", "$r5",
@@
-210,8
+210,7
@@
print_insn_moxie (bfd_vma addr, struct disassemble_info * info)
{
case MOXIE_F3_PCREL:
fpr (stream, "%s\t", opcode->name);
{
case MOXIE_F3_PCREL:
fpr (stream, "%s\t", opcode->name);
- info->print_address_func ((bfd_vma) (addr + INST2OFFSET(iword) + 2),
- info);
+ info->print_address_func (addr + INST2OFFSET (iword) + 2, info);
break;
case MOXIE_BAD:
fpr (stream, "bad");
break;
case MOXIE_BAD:
fpr (stream, "bad");
This page took
0.032768 seconds
and
4
git commands to generate.