Re: [Qemu-devel] EXT :Re: Emulating external registers

2017-04-12 Thread Wu, Michael Y [US] (MS)
o pick up any read/writes? -Original Message- From: Peter Maydell [mailto:peter.mayd...@linaro.org] Sent: Thursday, April 06, 2017 10:38 AM To: Wu, Michael Y [US] (MS) Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] EXT :Re: Emulating external registers On 6 April 2017 at 18:23, Wu, Michael Y [US

Re: [Qemu-devel] EXT :Re: Emulating external registers

2017-04-06 Thread Peter Maydell
On 6 April 2017 at 18:23, Wu, Michael Y [US] (MS) wrote: > I changed my code to the following and added the appropriate read,write > functions and a MemoryRegionOps. > memory_region_init_io(reg_memory, NULL, ®_ops, reg, > "reg_mem", 0x0040); //set to 64 bytes >

Re: [Qemu-devel] EXT :Re: Emulating external registers

2017-04-06 Thread Wu, Michael Y [US] (MS)
Thank you Peter! I changed my code to the following and added the appropriate read,write functions and a MemoryRegionOps. memory_region_init_io(reg_memory, NULL, ®_ops, reg, "reg_mem", 0x0040); //set to 64 bytes memory_region_add_subregion(sysmem, 0xFC00,