On Thu, Jun 14, 2007 at 05:00:32PM +0300, Blue Swirl wrote: > On 6/14/07, amateur <[EMAIL PROTECTED]> wrote: > >The softmmu_header.h code does assume each TLB entry has a fixed size > >of (2^CPU_TLB_ENTRY_BITS) bytes. Not only the assembly code, but also > >the C code assume this. So if you want to add new members into > >CPUTLBEntry, add the new member at the end of the data structure, and > >adjust CPU_TLB_ENTRY_BITS accordingly. > > No, on Sparc32 target_ulong is 32 bits (on 32-bit host) but > target_phys_addr_t is 64 bits. That makes the structure size 20 bytes. > Everything still works. ------------------------- Oh, yes. It's my fault. I confused CPU_TLB_SIZE and CPU_TLB_ENTRY_BITS. Paul Brook is right. The C code works with any CPUTLBEntry layout.
-- [32m题目:《村行》[m [33m作者:王禹称(繁体“称”,换“亻”旁)(954-1001)[m 马穿山径菊初黄,信马悠悠野兴长。 万壑有声含晚籁,数峰无语立斜阳。 棠梨叶落胭脂色,荞麦花开白雪香。 何事吟余忽惆怅,村桥原树似吾乡。