]> git.proxmox.com Git - mirror_qemu.git/commit - include/qom/cpu.h
cpu: Add new asidx_from_attrs() 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)
commitd7f25a9e6a6b2c69a0be6033903b7d6087bcf47d
tree084def86972dcb269d223a9e91d6574253fed8c6
parent1dc6fb1f5cc5cea5ba01010a19c6acefd0ae4b73
cpu: Add new asidx_from_attrs() method

Add a new method to CPUClass which the memory system core can
use to obtain the correct address space index to use for a memory
access with a given set of transaction attributes, together
with the wrapper function cpu_asidx_from_attrs() which implements
the default behaviour ("always use asidx 0") for CPU classes
which don't provide the method.

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