summaryrefslogtreecommitdiffstats
path: root/qemu/disas/arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/disas/arm.c')
-rw-r--r--qemu/disas/arm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu/disas/arm.c b/qemu/disas/arm.c
index 616524653..70da5298a 100644
--- a/qemu/disas/arm.c
+++ b/qemu/disas/arm.c
@@ -22,6 +22,7 @@
/* Start of qemu specific additions. Mostly this is stub definitions
for things we don't care about. */
+#include "qemu/osdep.h"
#include "disas/bfd.h"
#define ATTRIBUTE_UNUSED __attribute__((unused))
#define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n')
@@ -1779,7 +1780,7 @@ print_insn_coprocessor (bfd_vma pc, struct disassemble_info *info, long given,
/* Is ``imm'' a negative number? */
if (imm & 0x40)
- imm |= (-1 << 7);
+ imm |= (~0u << 7);
func (stream, "%d", imm);
}