Révision | 231c0592639d6f5c1796feb4a6375eab202a4acb (tree) |
---|---|
l'heure | 2015-11-19 23:01:04 |
Auteur | Yao Qi <yao.qi@lina...> |
Commiter | Yao Qi |
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]
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
2 | 2 | |
3 | + * linux-aarch64-low.c (emit_data_processing_reg): Change opcode | |
4 | + type to uint32_t. | |
5 | + | |
6 | +2015-11-19 Yao Qi <yao.qi@linaro.org> | |
7 | + | |
3 | 8 | * linux-aarch64-low.c (enum aarch64_operand_type): New. |
4 | 9 | (struct aarch64_operand): Move enum out. |
5 | 10 |
@@ -1029,7 +1029,7 @@ emit_stlr (uint32_t *buf, struct aarch64_register rt, | ||
1029 | 1029 | /* Helper function for data processing instructions with register sources. */ |
1030 | 1030 | |
1031 | 1031 | static int |
1032 | -emit_data_processing_reg (uint32_t *buf, enum aarch64_opcodes opcode, | |
1032 | +emit_data_processing_reg (uint32_t *buf, uint32_t opcode, | |
1033 | 1033 | struct aarch64_register rd, |
1034 | 1034 | struct aarch64_register rn, |
1035 | 1035 | struct aarch64_register rm) |