From 0105f815c6349043645fcc0bbf06d00a545882be Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 29 Nov 2019 21:35:59 +0100 Subject: [PATCH] targets: rename qemu target to cortex-m-qemu The target is intended to emulate the Cortex-M, not to be a generic QEMU target. --- main_test.go | 4 ++-- src/runtime/{runtime_qemu.go => runtime_cortexm_qemu.go} | 2 +- targets/{qemu.json => cortex-m-qemu.json} | 2 +- targets/{qemu.s => cortex-m-qemu.s} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/runtime/{runtime_qemu.go => runtime_cortexm_qemu.go} (96%) rename targets/{qemu.json => cortex-m-qemu.json} (92%) rename targets/{qemu.s => cortex-m-qemu.s} (96%) diff --git a/main_test.go b/main_test.go index 03dac09f0..9e4a6216d 100644 --- a/main_test.go +++ b/main_test.go @@ -50,7 +50,7 @@ func TestCompiler(t *testing.T) { } t.Run("EmulatedCortexM3", func(t *testing.T) { - runPlatTests("qemu", matches, t) + runPlatTests("cortex-m-qemu", matches, t) }) if runtime.GOOS == "linux" { @@ -76,7 +76,7 @@ func runPlatTests(target string, matches []string, t *testing.T) { } case target == "": // run all tests on host - case target == "qemu": + case target == "cortex-m-qemu": // all tests are supported default: // cross-compilation of cgo is not yet supported diff --git a/src/runtime/runtime_qemu.go b/src/runtime/runtime_cortexm_qemu.go similarity index 96% rename from src/runtime/runtime_qemu.go rename to src/runtime/runtime_cortexm_qemu.go index 37b6d46e5..f1f95caad 100644 --- a/src/runtime/runtime_qemu.go +++ b/src/runtime/runtime_cortexm_qemu.go @@ -1,4 +1,4 @@ -// +build qemu +// +build cortexm,qemu package runtime diff --git a/targets/qemu.json b/targets/cortex-m-qemu.json similarity index 92% rename from targets/qemu.json rename to targets/cortex-m-qemu.json index de1a6689d..03d688a36 100644 --- a/targets/qemu.json +++ b/targets/cortex-m-qemu.json @@ -8,7 +8,7 @@ ], "linkerscript": "targets/lm3s6965.ld", "extra-files": [ - "targets/qemu.s" + "targets/cortex-m-qemu.s" ], "emulator": ["qemu-system-arm", "-machine", "lm3s6965evb", "-semihosting", "-nographic", "-kernel"] } diff --git a/targets/qemu.s b/targets/cortex-m-qemu.s similarity index 96% rename from targets/qemu.s rename to targets/cortex-m-qemu.s index 96aaafb1d..2e2fa010d 100644 --- a/targets/qemu.s +++ b/targets/cortex-m-qemu.s @@ -1,5 +1,5 @@ // Generic Cortex-M interrupt vector. -// This vector is used by the QEMU target. +// This vector is used by the Cortex-M QEMU target. .syntax unified