qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] How to understand INDEX_op_goto_tb operation ?


From: 汪胜
Subject: [Qemu-devel] How to understand INDEX_op_goto_tb operation ?
Date: Wed, 18 Aug 2010 10:01:54 +0800

Hi all:
 In Tiny Code Generator for Mips target ,  "INDEX_op_goto_tb ( arg[0])  "  will be translated to
"
           tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_AT, (tcg_target_long)(s->tb_next + args[0]));
            tcg_out_ld(s, TCG_TYPE_PTR, TCG_REG_AT, TCG_REG_AT, 0);
            tcg_out_opc_reg(s, OPC_JR, 0, TCG_REG_AT, 0);
"
I think the code means   load the value of " s->tb_next[arg[0]] " ,  then jump to the address(value) .
After  search all source code in Qemu , I can't find any code to assign value to the   tb_next .  the tb_next seem

So, who can tell me where the s->tb_next[args[0]]  point ? where  tb_next is assigned value?

Thanks very much for any help .
By the way ,  you can give answer basing on any target machine except mips target.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]