mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2025-11-03 08:00:38 +08:00
exec: Declare MMUAccessType type in 'mmu-access-type.h' header
The MMUAccessType enum is declared in "hw/core/cpu.h". "hw/core/cpu.h" contains declarations related to CPUState and CPUClass. Some source files only require MMUAccessType and don't need to pull in all CPU* declarations. In order to simplify, create a new "exec/mmu-access-type.h" header. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240418192525.97451-2-philmd@linaro.org>
This commit is contained in:
18
include/exec/mmu-access-type.h
Normal file
18
include/exec/mmu-access-type.h
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* QEMU MMU Access type definitions
|
||||
*
|
||||
* Copyright (c) 2012 SUSE LINUX Products GmbH
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#ifndef EXEC_MMU_ACCESS_TYPE_H
|
||||
#define EXEC_MMU_ACCESS_TYPE_H
|
||||
|
||||
typedef enum MMUAccessType {
|
||||
MMU_DATA_LOAD = 0,
|
||||
MMU_DATA_STORE = 1,
|
||||
MMU_INST_FETCH = 2
|
||||
#define MMU_ACCESS_COUNT 3
|
||||
} MMUAccessType;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user