[Qemu-devel] How to memory map L2 memory in system mode

2013-08-21 Thread qi Lee
Hi all There are two vcpus in the system mode. L2 memory comes between L1 and RAM. Each vcpu has a L2 memory, its memory-map like this: vcpu1's L2 memory: 0x0800~0x0807 (512K) vcpu2's L2 memory: 0x0800~0x0807 (512K) So, the two vcpus have two sections of the same private

[Qemu-devel] How to use cpu_st*_*( )

2013-01-28 Thread qi Lee
Hi all In QEMU's system mode. I know that QEMU use the load macros (in the softmmu_header.h) to fetch the instruction. static inline RES_TYPE glue(glue(cpu_ld, USUFFIX), MEMSUFFIX)(CPUArchState *env, target_ulong ptr) But I don't know where is the store macros used. I use to to set

[Qemu-devel] Some questions about memory access-----target_mmap()how can write one byte into memory

2012-12-21 Thread qi Lee
Hi all If I already have an emulator, all instructions have been carried out. In order to reuse these codes on the other simulation platforms, as Simics, QEMU, SystemC. So, I want to skip over QEMU's TCG(guest binary--IR--host binary). Just let QEMU controll the cpu's execution and the cpu