ARC: boards: ARCv3: add qemu_arc_hs5x board

Add qemu_arc_hs5x - single core ARCv3 32bit HS5x CPU.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2022-08-04 23:08:23 +04:00 committed by Fabio Baltieri
parent 8b0c91476b
commit 2adfe5ce65
8 changed files with 67 additions and 1 deletions

View file

@ -8,6 +8,10 @@ set(QEMU_FLAGS_${ARCH} -cpu arcem)
elseif(${CONFIG_SOC_QEMU_ARC_HS})
set(QEMU_CPU_TYPE_${ARCH} archs)
set(QEMU_FLAGS_${ARCH} -cpu archs)
elseif(${CONFIG_SOC_QEMU_ARC_HS5X})
set(QEMU_ARCH arc)
set(QEMU_CPU_TYPE_${ARCH} hs5x)
set(QEMU_FLAGS_${ARCH} -cpu hs5x)
elseif(${CONFIG_SOC_QEMU_ARC_HS6X})
set(QEMU_ARCH arc64)
set(QEMU_CPU_TYPE_${ARCH} arc64)

View file

@ -0,0 +1,25 @@
/*
* Copyright (c) 2022, Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include "qemu_arc.dtsi"
/ {
model = "QEMU ARC HS";
compatible = "qemu,archs";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,archs";
reg = <0>;
};
};
};

View file

@ -0,0 +1,12 @@
identifier: qemu_arc_hs5x
name: QEMU Emulation for ARC HS5x
type: qemu
simulation: qemu
arch: arc
toolchain:
- cross-compile
testing:
default: true
ignore_tags:
- net
- bluetooth

View file

@ -0,0 +1,12 @@
CONFIG_ISA_ARCV3=y
CONFIG_SOC_QEMU_ARC=y
CONFIG_SOC_QEMU_ARC_HS5X=y
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_HAS_STACK_CHECKING=n
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT_SHIFT=6

View file

@ -1,6 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_compile_options(-mcpu=${GCC_M_CPU})
if(NOT CONFIG_64BIT)
if(CONFIG_ISA_ARCV2)
zephyr_compile_options(-mno-sdata)
endif()

View file

@ -15,4 +15,7 @@ config SOC_QEMU_ARC_HS
config SOC_QEMU_ARC_HS6X
bool "Synopsys ARC HS in QEMU"
config SOC_QEMU_ARC_HS5X
bool "Synopsys ARC HS5x in QEMU"
endchoice

View file

@ -32,6 +32,7 @@ config ARC_MPU_VER
source "soc/arc/snps_qemu/Kconfig.defconfig.em"
source "soc/arc/snps_qemu/Kconfig.defconfig.hs"
source "soc/arc/snps_qemu/Kconfig.defconfig.hs5x"
source "soc/arc/snps_qemu/Kconfig.defconfig.hs6x"
endif

View file

@ -0,0 +1,9 @@
# Copyright (c) 2022 Synopsys, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if SOC_QEMU_ARC_HS5X
config CPU_HS5X
default y
endif