cpu-param.h (27a03171d02ee0de8de4e2d3bed241795d672859) cpu-param.h (b14d0649628cbe88ac0ef35fcf58cd1fc22735b8)
1/*
2 * SH4 cpu parameters for qemu.
3 *
4 * Copyright (c) 2005 Samuel Tardieu
1/*
2 * SH4 cpu parameters for qemu.
3 *
4 * Copyright (c) 2005 Samuel Tardieu
5 * SPDX-License-Identifier: LGPL-2.0+
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_LONG_BITS 32
12#define TARGET_PAGE_BITS 12 /* 4k */
13#define TARGET_PHYS_ADDR_SPACE_BITS 32
14#ifdef CONFIG_USER_ONLY
15# define TARGET_VIRT_ADDR_SPACE_BITS 31
16#else
17# define TARGET_VIRT_ADDR_SPACE_BITS 32
18#endif
19
20#endif
6 */
7
8#ifndef SH4_CPU_PARAM_H
9#define SH4_CPU_PARAM_H
10
11#define TARGET_LONG_BITS 32
12#define TARGET_PAGE_BITS 12 /* 4k */
13#define TARGET_PHYS_ADDR_SPACE_BITS 32
14#ifdef CONFIG_USER_ONLY
15# define TARGET_VIRT_ADDR_SPACE_BITS 31
16#else
17# define TARGET_VIRT_ADDR_SPACE_BITS 32
18#endif
19
20#endif