Hi,
1) I have a total of four memories: RAM, Flash, DDR and Shared. I initialised the flash and ram like the follows:
MemoryRegion *flash = g_new(MemoryRegion, 1);
int flash_size = board->flash_size_kb * 1024;
memory_region_init_ram(flash, NULL, "machine.flash", flash_size, &error_fatal);
memory_region_add_subregion(system_memory, FLASH_LOCATION, flash);
same for the ram and others. Later sum-up all and give it to the setupMemory. Is it the right way to define the total system memory.
2) How do we test a machine in qemu. I tried to put my machine files(.c and .h) into the test any used "make check" it gave error like this
"qemu-4.2.0/target/arm/kvm-consts.h:17:8: error: attempt to use poisoned "CONFIG_KVM"
#ifdef CONFIG_KVM
^ "
I understood the qtest for devices but machine how do we test?
BR.
Abhijeet.