forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: add qemu_xtensa/sample_controller32/mpu
This adds the necessary bit to enable testing Xtensa MPU on QEMU. Signed-off-by: Daniel Leung <[email protected]>
- Loading branch information
Showing
7 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ board: | |
- name: dc233c | ||
variants: | ||
- name: mmu | ||
- name: sample_controller32 | ||
variants: | ||
- name: mpu |
22 changes: 22 additions & 0 deletions
22
boards/qemu/xtensa/qemu_xtensa_sample_controller32_mpu.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) 2019, 2023 Intel Corporation. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include "sample_controller32.dtsi" | ||
|
||
/ { | ||
model = "qemu_xtensa_mpu"; | ||
compatible = "cdns,xtensa-sample-controller32"; | ||
|
||
chosen { | ||
zephyr,sram = &sram0; | ||
}; | ||
}; | ||
|
||
&cpu0 { | ||
clock-frequency = <10000000>; | ||
}; |
10 changes: 10 additions & 0 deletions
10
boards/qemu/xtensa/qemu_xtensa_sample_controller32_mpu.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
identifier: qemu_xtensa/sample_controller32/mpu | ||
name: QEMU Emulation for Xtensa with MPU | ||
type: qemu | ||
simulation: qemu | ||
arch: xtensa | ||
testing: | ||
default: true | ||
ignore_tags: | ||
- net | ||
- bluetooth |
11 changes: 11 additions & 0 deletions
11
boards/qemu/xtensa/qemu_xtensa_sample_controller32_mpu_defconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_MAIN_STACK_SIZE=2048 | ||
CONFIG_CONSOLE=y | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=10000000 | ||
CONFIG_STACK_SENTINEL=y | ||
CONFIG_GEN_ISR_TABLES=y | ||
CONFIG_GEN_IRQ_VECTOR_TABLE=n | ||
CONFIG_SIMULATOR_XTENSA=y | ||
CONFIG_QEMU_ICOUNT_SHIFT=6 | ||
CONFIG_PRIVILEGED_STACK_SIZE=4096 |