Skip to content

Commit

Permalink
cortex r5 added
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed Jul 20, 2021
1 parent 2d1847c commit 7f1f425
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
29 changes: 29 additions & 0 deletions apps/microtvm/zephyr/host_driven/boards/qemu_cortex_r5.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# This file is specific to the QEMU-emulated Cortex R5 microTVM board.

# For TVMPlatformGenerateRandom(). Remember, these values do not need to be truly random.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TIMER_RANDOM_GENERATOR=y

# Default stack size is 1k, this is required for debug mode.
CONFIG_MAIN_STACK_SIZE=4000


# For models with floating point.
CONFIG_FPU=y
2 changes: 1 addition & 1 deletion apps/microtvm/zephyr/qemu-hack/qemu-system-arm
1 change: 1 addition & 0 deletions apps/microtvm/zephyr/qemu-hack/qemu-system-xilinx-aarch64
2 changes: 1 addition & 1 deletion python/tvm/target/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ def intel_graphics(model="unknown", options=None):
opts = _merge_opts(opts, options)
return Target(" ".join(["opencl"] + opts))


MICRO_SUPPORTED_MODELS = {
"host": [],
"zynq_mp_r5": ["-mcpu=cortex-r5"],
"mps2_an521": ["-mcpu=cortex-m33"],
"nrf5340dk": ["-mcpu=cortex-m33"],
"stm32f746xx": ["-mcpu=cortex-m7", "-march=armv7e-m"],
Expand Down
1 change: 1 addition & 0 deletions tests/micro/zephyr/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"stm32f746xx_disco": ("stm32f746xx", "stm32f746g_disco"),
"stm32f746xx_nucleo": ("stm32f746xx", "nucleo_f746zg"),
"stm32l4r5zi_nucleo": ("stm32l4r5zi", "nucleo_l4r5zi"),
"zynq_mp_r5": ("zynq_mp_r5", "qemu_cortex_r5"),
}


Expand Down

0 comments on commit 7f1f425

Please sign in to comment.