diff options
author | Milica Lazarevic <milica.lazarevic@syrmia.com> | 2022-09-12 14:26:34 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-10-31 11:32:07 +0100 |
commit | a0fee129445af73c1de7b56472dff14113bc4dc7 (patch) | |
tree | 39bafcf5ec4ebd070c01ce88db27e7b4cb3c01a3 /disas | |
parent | e8ba8ef873222178e238618d6d4b65b82cf47f41 (diff) |
disas/nanomips: Remove argument passing by ref
Replaced argument passing by reference with passing by address.
Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220912122635.74032-24-milica.lazarevic@syrmia.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'disas')
-rw-r--r-- | disas/nanomips.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 8b4bc910a4..9647f1a8e3 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -560,7 +560,7 @@ static uint64 extract_op_code_value(const uint16 *data, int size) * disassembly string - on error will constain error string */ static int Disassemble(const uint16 *data, char **dis, - TABLE_ENTRY_TYPE & type, const Pool *table, + TABLE_ENTRY_TYPE *type, const Pool *table, int table_size, Dis_info *info) { for (int i = 0; i < table_size; i++) { @@ -585,7 +585,7 @@ static int Disassemble(const uint16 *data, char **dis, "disassembler failure - bad table entry"); return -6; } - type = table[i].type; + *type = table[i].type; *dis = dis_fn(op_code, info); return table[i].instructions_size; } else { @@ -21914,7 +21914,7 @@ static int nanomips_dis(char **buf, uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; - int size = Disassemble(bits, buf, type, MAJOR, 2, info); + int size = Disassemble(bits, buf, &type, MAJOR, 2, info); return size; } |