Change argument opcode type from enum aarch64_opcodes to uint32_t
The patch fixes the following errors in C++ build, gdb/gdbserver/linux-aarch64-low.c: In function 'int emit_data_processing(uint32_t*, aarch64_opcodes, aarch64_register, aarch64_register, aarch64_operand)': gdb/gdbserver/linux-aarch64-low.c:1071:52: error: invalid conversion from 'unsigned int' to 'aarch64_opcodes' [-fpermissive] return emit_data_processing_reg (buf, opcode | operand_opcode, rd, ^ gdb/gdbserver: 2015-11-19 Yao Qi <yao.qi@linaro.org> * linux-aarch64-low.c (emit_data_processing_reg): Change opcode type to uint32_t.
This commit is contained in:
parent
6c1c9a8bbd
commit
231c059263
|
@ -1,3 +1,8 @@
|
|||
2015-11-19 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* linux-aarch64-low.c (emit_data_processing_reg): Change opcode
|
||||
type to uint32_t.
|
||||
|
||||
2015-11-19 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* linux-aarch64-low.c (enum aarch64_operand_type): New.
|
||||
|
|
|
@ -1029,7 +1029,7 @@ emit_stlr (uint32_t *buf, struct aarch64_register rt,
|
|||
/* Helper function for data processing instructions with register sources. */
|
||||
|
||||
static int
|
||||
emit_data_processing_reg (uint32_t *buf, enum aarch64_opcodes opcode,
|
||||
emit_data_processing_reg (uint32_t *buf, uint32_t opcode,
|
||||
struct aarch64_register rd,
|
||||
struct aarch64_register rn,
|
||||
struct aarch64_register rm)
|
||||
|
|
Loading…
Reference in New Issue