Skip to content

Commit b50eb25

Browse files
committed
vm: use -cpu cortex-a15 for qemu/arm32
The new qemu versions began to fail with the settings we previously used. It's probably not worth extensive debugging, so let's just do what qemu suggests. qemu-system-arm: Invalid CPU model: max The only valid type is: cortex-a15
1 parent d448004 commit b50eb25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vm/qemu/qemu.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ var archConfigs = map[string]*archConfig{
162162
},
163163
},
164164
"linux/arm": {
165-
Qemu: "qemu-system-arm",
166-
QemuArgs: "-machine vexpress-a15 -cpu max -accel tcg,thread=multi",
165+
Qemu: "qemu-system-arm",
166+
// For some reason, new qemu-system-arm versions complain that "The only valid type is: cortex-a15".
167+
QemuArgs: "-machine vexpress-a15 -cpu cortex-a15 -accel tcg,thread=multi",
167168
NetDev: "virtio-net-device",
168169
RngDev: "virtio-rng-device",
169170
UseNewQemuImageOptions: true,

0 commit comments

Comments
 (0)