qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Reading and writing functions for QEMU emulated periphe


From: Peter Maydell
Subject: Re: [Qemu-devel] Reading and writing functions for QEMU emulated peripherals
Date: Sun, 15 Oct 2017 17:50:41 +0100

On 15 October 2017 at 17:47, Ramy Sameh <address@hidden> wrote:
> I was tracking the calling of function pl011_read, and I noticed that it is
> called from function *memory_region_read_accessor *in memory.c
>
> I also noticed that all peripherals reading functions (e.g. pl050_read,
> pl190_read ... etc) in the emulated VersatilePB board, are called from the
> same location in *memory_region_read_accessor.*
>
> *My question is*: Is this calling procedure done for the emulated
> VersatilePB board *only*, or this is the case for the peripherals in all
> emulated systems ?

Broadly speaking, yes, all peripheral device read and write
functions are invoked via the memory subsystem code (which
is the part of QEMU that figures out what memory region
covers whatever the physical address that the guest wrote
to is).

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]