[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] TB chaining
From: |
Lei Li |
Subject: |
Re: [Qemu-devel] TB chaining |
Date: |
Thu, 22 Sep 2011 09:37:23 +0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 |
On 09/22/2011 07:05 AM, Xin Tong wrote:
I am new to QEMU, can anyone please tell me where the TB chaining code is in
QEMU ?
Actually, TB chaining was implemented via TB list. You might want to look at
Exec.c
In struct TranslationBlock, the following data are used to directly call
another TB from
the code of this one.
uint16_t tb_next_offset[2]; /* offset of original jump target */
#ifdef USE_DIRECT_JUMP
uint16_t tb_jmp_offset[2]; /* offset of jump instruction */
#else
unsigned long tb_next[2]; /* address of jump generated code */
#endif
/* list of TBs jumping to this one. This is a circular list using
the two least significant bits of the pointers to tell what is
the next pointer: 0 = jmp_next[0], 1 = jmp_next[1], 2 =
jmp_first */
struct TranslationBlock *jmp_next[2];
struct TranslationBlock *jmp_first; are used to directly call another TB
from
the code of this one
Thanks
Xin
--
Lei
- [Qemu-devel] TB chaining, Xin Tong, 2011/09/21
- Re: [Qemu-devel] TB chaining,
Lei Li <=
- Re: [Qemu-devel] TB chaining, 陳韋任, 2011/09/21
- Re: [Qemu-devel] TB chaining, Lei Li, 2011/09/21
- Re: [Qemu-devel] TB chaining, 陳韋任, 2011/09/21
- Re: [Qemu-devel] TB chaining, Xin Tong, 2011/09/22
- Re: [Qemu-devel] TB chaining, 陳韋任, 2011/09/22
- Message not available
- Re: [Qemu-devel] TB chaining, 陳韋任, 2011/09/23
- Re: [Qemu-devel] TB chaining, Xin Tong, 2011/09/24
- Re: [Qemu-devel] TB chaining, 陳韋任, 2011/09/24
Re: [Qemu-devel] TB chaining, 陳韋任, 2011/09/21