OSDN Git Service

cpu: Add new get_phys_page_attrs_debug() method
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Jan 2016 14:15:05 +0000 (14:15 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Jan 2016 14:15:05 +0000 (14:15 +0000)
commit1dc6fb1f5cc5cea5ba01010a19c6acefd0ae4b73
tree93dee9c6e80c969949e000b798654e60a6bae0ea
parent1787cc8ee55143b6071c87e59f08d56e7c22c1eb
cpu: Add new get_phys_page_attrs_debug() method

Add a new optional method get_phys_page_attrs_debug() to CPUClass.
This is like the existing get_phys_page_debug(), but also returns
the memory transaction attributes to use for the access.
This will be necessary for CPUs which have multiple address
spaces and use the attributes to select the correct address
space.

We provide a wrapper function cpu_get_phys_page_attrs_debug()
which falls back to the existing get_phys_page_debug(), so we
don't need to change every target CPU.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
include/qom/cpu.h