And it's QEMU-4.2.0 and even parallely trying on QEMU-6.0.0.

BR.
Abhijeet.

On Fri, 19 Nov, 2021, 13:02 abhijeet inamdar, <abhijeetinamdar3...@gmail.com>
wrote:

> 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.
> I tried to follow this
> https://github.com/qemu/qemu/blob/stable-4.2/docs/devel/memory.rst but
> I'm confused or don't know which to use .
>
> 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.
>

Reply via email to