Re: [Qemu-devel] [RFC PATCH] exec: Support non-direct memory writes in cpu_memory_rw_debug

2016-06-30 Thread Andrey Smirnov
On Thu, Jun 30, 2016 at 7:06 AM, Peter Maydell wrote: > On 28 June 2016 at 22:44, Andrey Smirnov wrote: >> Add code to support writing to memory mapped peripherals via >> cpu_memory_rw_debug(). The code of that function already supports >> reading from such memory regions, so this commit makes th

Re: [Qemu-devel] [RFC PATCH] exec: Support non-direct memory writes in cpu_memory_rw_debug

2016-06-30 Thread Andrey Smirnov
On Wed, Jun 29, 2016 at 8:55 AM, Paolo Bonzini wrote: > On 28/06/2016 23:44, Andrey Smirnov wrote: >> Add code to support writing to memory mapped peripherals via >> cpu_memory_rw_debug(). The code of that function already supports >> reading from such memory regions, so this commit makes that >>

Re: [Qemu-devel] [RFC PATCH] exec: Support non-direct memory writes in cpu_memory_rw_debug

2016-06-30 Thread Peter Maydell
On 28 June 2016 at 22:44, Andrey Smirnov wrote: > Add code to support writing to memory mapped peripherals via > cpu_memory_rw_debug(). The code of that function already supports > reading from such memory regions, so this commit makes that > functionality "symmetric". > > One use-case for that fu

Re: [Qemu-devel] [RFC PATCH] exec: Support non-direct memory writes in cpu_memory_rw_debug

2016-06-29 Thread Paolo Bonzini
On 28/06/2016 23:44, Andrey Smirnov wrote: > Add code to support writing to memory mapped peripherals via > cpu_memory_rw_debug(). The code of that function already supports > reading from such memory regions, so this commit makes that > functionality "symmetric". It's not entirely symmetric howev

[Qemu-devel] [RFC PATCH] exec: Support non-direct memory writes in cpu_memory_rw_debug

2016-06-28 Thread Andrey Smirnov
Add code to support writing to memory mapped peripherals via cpu_memory_rw_debug(). The code of that function already supports reading from such memory regions, so this commit makes that functionality "symmetric". One use-case for that functionality is setting various registers of a non-running CP