targets: rename qemu target to cortex-m-qemu

The target is intended to emulate the Cortex-M, not to be a generic QEMU
target.
Этот коммит содержится в:
Ayke van Laethem 2019-11-29 21:35:59 +01:00 коммит произвёл Ron Evans
родитель d441f0152f
коммит 0105f815c6
4 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -1,4 +1,4 @@
// +build qemu
// +build cortexm,qemu
package runtime

Просмотреть файл

@ -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"]
}

Просмотреть файл

@ -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