xref: /qemu/target/avr/cpu-param.h (revision 70ce076fa6dff60585c229a4b641b13e64bf03cf)
1 /*
2  * QEMU AVR CPU
3  *
4  * Copyright (c) 2016-2020 Michael Rolnik
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, see
18  * <http://www.gnu.org/licenses/lgpl-2.1.html>
19  */
20 
21 #ifndef AVR_CPU_PARAM_H
22 #define AVR_CPU_PARAM_H
23 
24 /*
25  * TARGET_PAGE_BITS cannot be more than 8 bits because
26  * 1.  all IO registers occupy [0x0000 .. 0x00ff] address range, and they
27  *     should be implemented as a device and not memory
28  * 2.  SRAM starts at the address 0x0100
29  */
30 #define TARGET_PAGE_BITS 8
31 #define TARGET_PHYS_ADDR_SPACE_BITS 24
32 #define TARGET_VIRT_ADDR_SPACE_BITS 24
33 
34 #define TCG_GUEST_DEFAULT_MO 0
35 
36 #endif
37