Re: switch RAM and ROM mode with memory_region_set_readonly

2021-07-19 Thread Hiroko Shimizu
Sorry, I found a bug that I made a mistake in writing to RAM. Best regard, Hiroko 2021年7月15日(木) 19:55 Peter Maydell : > On Wed, 14 Jul 2021 at 12:13, Hiroko Shimizu > wrote: > > > > Hello, > > I want to switch the memory read-only mode with > memory_region_set_readonly() function for writing

Re: switch RAM and ROM mode with memory_region_set_readonly

2021-07-15 Thread Peter Maydell
On Wed, 14 Jul 2021 at 12:13, Hiroko Shimizu wrote: > > Hello, > I want to switch the memory read-only mode with > memory_region_set_readonly() function for writing a value to memory under a > specific condition. I checked that I could switch the mode using > memory_region_set_readonly(), but

switch RAM and ROM mode with memory_region_set_readonly

2021-07-14 Thread Hiroko Shimizu
Hello, I want to switch the memory read-only mode with memory_region_set_readonly() function for writing a value to memory under a specific condition. I checked that I could switch the mode using memory_region_set_readonly(), but I couldn't write a value to the memory region when the mode was fal