Re: [Qemu-devel] a quesion

2016-08-17 Thread Richard Henderson
On 08/17/2016 12:57 AM, Michael Rolnik wrote: another question. is it possible to measure number of executed instruction between two calls to device read/write functions? Not really. I know there is qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) function, but it requires to assume that icount is used

Re: [Qemu-devel] a quesion

2016-08-17 Thread Michael Rolnik
another question. is it possible to measure number of executed instruction between two calls to device read/write functions? I know there is qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) function, but it requires to assume that icount is used and CPU frequence. thanks, Michael On Tue, Aug 16, 2016 at 5:

Re: [Qemu-devel] a quesion

2016-08-16 Thread Michael Rolnik
thanks Peter. On Tue, Aug 16, 2016 at 5:07 PM, Peter Maydell wrote: > On 16 August 2016 at 14:53, Michael Rolnik wrote: > > 1. How to implement a device that has 4 registers in IO space e.g. AVR > > EEPROM? > > Since for your AVR target the IO space is just turned into > accesses to physical me

Re: [Qemu-devel] a quesion

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 14:53, Michael Rolnik wrote: > 1. How to implement a device that has 4 registers in IO space e.g. AVR > EEPROM? Since for your AVR target the IO space is just turned into accesses to physical memory, ie the inb/outb default case does something like this: +cpu_phy

[Qemu-devel] a quesion

2016-08-16 Thread Michael Rolnik
Hi all, 1. How to implement a device that has 4 registers in IO space e.g. AVR EEPROM? 2. what is a SoC container object? How? -- Best Regards, Michael Rolnik