Change argument opcode type from enum aarch64_opcodes to uint32_t
authorYao Qi <yao.qi@linaro.org>
Thu, 19 Nov 2015 13:58:29 +0000 (13:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 19 Nov 2015 14:01:04 +0000 (14:01 +0000)
commit231c0592639d6f5c1796feb4a6375eab202a4acb
treebd5a4a085e2b93a574d87450dd18e9e9d481439b
parent6c1c9a8bbd2aa3fbc627525b452e7dbbaf40efc5
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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c