|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v2 07/13] tcg/i386: implement goto_ptr op |
Date: | Tue, 25 Apr 2017 13:32:41 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 |
On 04/25/2017 09:53 AM, Emilio G. Cota wrote:
static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op) { + static const TCGTargetOpDef ri = { .args_ct_str = { "ri" } }; static const TCGTargetOpDef ri_r = { .args_ct_str = { "ri", "r" } }; static const TCGTargetOpDef re_r = { .args_ct_str = { "re", "r" } }; static const TCGTargetOpDef qi_r = { .args_ct_str = { "qi", "r" } }; @@ -2324,6 +2333,9 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op) case INDEX_op_st_i64: return &re_r;+ case INDEX_op_goto_ptr:+ return &ri; +
This is incorrect. You only handle register inputs (i.e. just "r") in your implementation. Indeed, that's also the only thing that makes sense.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |