xref: /qemu/target/sh4/cpu-param.h (revision c2ba9fea42391c316794c78f0f6f01760b1fb0f7)
1 /*
2  * SH4 cpu parameters for qemu.
3  *
4  * Copyright (c) 2005 Samuel Tardieu
5  * SPDX-License-Identifier: LGPL-2.0-or-later
6  */
7 
8 #ifndef SH4_CPU_PARAM_H
9 #define SH4_CPU_PARAM_H
10 
11 #define TARGET_PAGE_BITS 12  /* 4k */
12 #define TARGET_PHYS_ADDR_SPACE_BITS  32
13 #ifdef CONFIG_USER_ONLY
14 # define TARGET_VIRT_ADDR_SPACE_BITS 31
15 #else
16 # define TARGET_VIRT_ADDR_SPACE_BITS 32
17 #endif
18 
19 #define TARGET_INSN_START_EXTRA_WORDS 1
20 
21 /* MTTCG not yet supported: require strict ordering */
22 #define TCG_GUEST_DEFAULT_MO        TCG_MO_ALL
23 
24 #endif
25