e92dd33224
accel/tcg/ files requires the following definitions: - TARGET_LONG_BITS - TARGET_PAGE_BITS - TARGET_PHYS_ADDR_SPACE_BITS - TCG_GUEST_DEFAULT_MO The first 3 are defined in "cpu-param.h". The last one in "cpu.h", with a bunch of definitions irrelevant for TCG. By moving the TCG_GUEST_DEFAULT_MO definition to "cpu-param.h", we can simplify various accel/tcg includes. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Nicholas Piggin <npiggin@gmail.com> Message-Id: <20231211212003.21686-4-philmd@linaro.org>
38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
/*
|
|
* QEMU AVR CPU
|
|
*
|
|
* Copyright (c) 2016-2020 Michael Rolnik
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, see
|
|
* <http://www.gnu.org/licenses/lgpl-2.1.html>
|
|
*/
|
|
|
|
#ifndef AVR_CPU_PARAM_H
|
|
#define AVR_CPU_PARAM_H
|
|
|
|
#define TARGET_LONG_BITS 32
|
|
/*
|
|
* TARGET_PAGE_BITS cannot be more than 8 bits because
|
|
* 1. all IO registers occupy [0x0000 .. 0x00ff] address range, and they
|
|
* should be implemented as a device and not memory
|
|
* 2. SRAM starts at the address 0x0100
|
|
*/
|
|
#define TARGET_PAGE_BITS 8
|
|
#define TARGET_PHYS_ADDR_SPACE_BITS 24
|
|
#define TARGET_VIRT_ADDR_SPACE_BITS 24
|
|
|
|
#define TCG_GUEST_DEFAULT_MO 0
|
|
|
|
#endif
|