Re: [Qemu-devel] TARGET_PAGE_BITS

2017-06-23 Thread Peter Maydell
On 23 June 2017 at 16:02, ali saeedi wrote: > thank you for answer > So. why do we have right shift in qemu by "TARGET_PAGE_BITS" ? for exampe > in below code, what does it mean? > > static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start, >

Re: [Qemu-devel] TARGET_PAGE_BITS

2017-06-23 Thread ali saeedi
thank you for answer So. why do we have right shift in qemu by "TARGET_PAGE_BITS" ? for exampe in below code, what does it mean? static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start, ram_addr_t length) { unsigned long en

Re: [Qemu-devel] TARGET_PAGE_BITS

2017-06-23 Thread Alex Bennée
ali saeedi writes: > Hello > What does TARGET_PAGE_BITS mean in qemu code? It's the page size of the target. e.g. TARGET_PAGE_BITS 12 1 << 12 = 4096 = 4k pages > thanks a lot -- Alex Bennée

[Qemu-devel] TARGET_PAGE_BITS

2017-06-23 Thread ali saeedi
Hello What does TARGET_PAGE_BITS mean in qemu code? thanks a lot

Re: [Qemu-devel] TARGET_PAGE_BITS

2017-05-22 Thread Thomas Huth
On 22.05.2017 14:54, ali saeedi wrote: > Hello > What is TARGET_PAGE_BITS in ram.c? 12, on average, see: grep TARGET_PAGE_BITS target/*/cpu.h > thanks a lot You're welcome. Thomas

[Qemu-devel] TARGET_PAGE_BITS

2017-05-22 Thread ali saeedi
Hello What is TARGET_PAGE_BITS in ram.c? thanks a lot