projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aarch64: Remove ZIDR_EL1
[binutils-gdb.git]
/
opcodes
/
avr-dis.c
diff --git
a/opcodes/avr-dis.c
b/opcodes/avr-dis.c
index 6a37c6e637d023361f30d5ee0de9f440cad44413..06f8a0c663b967d2b6d0b4efb41c413cd3ef9087 100644
(file)
--- a/
opcodes/avr-dis.c
+++ b/
opcodes/avr-dis.c
@@
-1,5
+1,5
@@
/* Disassemble AVR instructions.
/* Disassemble AVR instructions.
- Copyright (C) 1999-20
18
Free Software Foundation, Inc.
+ Copyright (C) 1999-20
21
Free Software Foundation, Inc.
Contributed by Denis Chertykov <denisc@overta.ru>
Contributed by Denis Chertykov <denisc@overta.ru>
@@
-25,7
+25,7
@@
#include "disassemble.h"
#include "opintl.h"
#include "libiberty.h"
#include "disassemble.h"
#include "opintl.h"
#include "libiberty.h"
-#include
"bfd_stdint.h"
+#include
<stdint.h>
struct avr_opcodes_s
{
struct avr_opcodes_s
{
@@
-198,6
+198,8
@@
avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
{
unsigned int val = ((insn & 0xf) | ((insn & 0x600) >> 5)
| ((insn & 0x100) >> 2));
{
unsigned int val = ((insn & 0xf) | ((insn & 0x600) >> 5)
| ((insn & 0x100) >> 2));
+ if ((insn & 0x100) == 0)
+ val |= 0x80;
*sym = 1;
*sym_addr = val | 0x800000;
sprintf (buf, "0x%02x", val);
*sym = 1;
*sym_addr = val | 0x800000;
sprintf (buf, "0x%02x", val);