2 * Infineon tc27x SoC System emulation.
4 * Copyright (c) 2020 Andreas Konopik <andreas.konopik@efs-auto.de>
5 * Copyright (c) 2020 David Brenken <david.brenken@efs-auto.de>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
24 #include "hw/sysbus.h"
25 #include "target/tricore/cpu.h"
26 #include "qom/object.h"
28 #define TYPE_TC27X_SOC ("tc27x-soc")
29 OBJECT_DECLARE_TYPE(TC27XSoCState
, TC27XSoCClass
, TC27X_SOC
)
31 typedef struct TC27XSoCCPUMemState
{
41 } TC27XSoCCPUMemState
;
43 typedef struct TC27XSoCFlashMemState
{
45 MemoryRegion pflash0_c
;
46 MemoryRegion pflash1_c
;
47 MemoryRegion pflash0_u
;
48 MemoryRegion pflash1_u
;
55 MemoryRegion lmuram_c
;
56 MemoryRegion lmuram_u
;
60 } TC27XSoCFlashMemState
;
62 typedef struct TC27XSoCState
{
64 SysBusDevice parent_obj
;
72 TC27XSoCCPUMemState cpu0mem
;
73 TC27XSoCCPUMemState cpu1mem
;
74 TC27XSoCCPUMemState cpu2mem
;
76 TC27XSoCFlashMemState flashmem
;
80 typedef struct MemmapEntry
{
85 typedef struct TC27XSoCClass
{
86 DeviceClass parent_class
;
90 const MemmapEntry
*memmap
;