projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gdb/testsuite] Fix duplicate test-names in gdb.trace
[deliverable/binutils-gdb.git]
/
bfd
/
xtensa-isa.c
diff --git
a/bfd/xtensa-isa.c
b/bfd/xtensa-isa.c
index 0fa8ab4ad0c643196bd5d14bd5be91cd2f9e5918..bc55d71360ff5339183e852d3b0529e96c348756 100644
(file)
--- a/
bfd/xtensa-isa.c
+++ b/
bfd/xtensa-isa.c
@@
-1,5
+1,5
@@
/* Configurable Xtensa ISA support.
/* Configurable Xtensa ISA support.
- Copyright (C) 2003-20
14
Free Software Foundation, Inc.
+ Copyright (C) 2003-20
20
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This file is part of BFD, the Binary File Descriptor library.
@@
-223,7
+223,7
@@
xtensa_insnbuf_from_chars (xtensa_isa isa,
int word_inx = byte_to_word_index (i);
int bit_inx = byte_to_bit_index (i);
int word_inx = byte_to_word_index (i);
int bit_inx = byte_to_bit_index (i);
- insn[word_inx] |= (*cp & 0xff) << bit_inx;
+ insn[word_inx] |= (
unsigned) (
*cp & 0xff) << bit_inx;
}
}
}
}
@@
-292,7
+292,8
@@
xtensa_isa_init (xtensa_isa_status *errno_p, char **error_msg_p)
xtensa_sysreg_internal *sreg = &isa->sysregs[n];
is_user = sreg->is_user;
xtensa_sysreg_internal *sreg = &isa->sysregs[n];
is_user = sreg->is_user;
- isa->sysreg_table[is_user][sreg->number] = n;
+ if (sreg->number >= 0)
+ isa->sysreg_table[is_user][sreg->number] = n;
}
/* Set up the interface lookup table. */
}
/* Set up the interface lookup table. */
This page took
0.023281 seconds
and
4
git commands to generate.