feat: Check for SSE4 instruction set

Replace info message with error handling for missing SSE4 support.
This commit is contained in:
Kroese 2025-10-29 08:25:19 +01:00 committed by GitHub
parent 5e8bbc2868
commit d302b4b3b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,9 +33,7 @@ if [[ "$KVM" != [Nn]* ]]; then
KVM_OPTS=",accel=kvm -enable-kvm -global kvm-pit.lost_tick_policy=discard"
if ! grep -qw "sse4_2" <<< "$flags"; then
info "Your CPU does not have the SSE4 instruction set that Virtual DSM requires, it will be emulated..."
[ -z "$CPU_MODEL" ] && CPU_MODEL="qemu64"
CPU_FEATURES+=",+ssse3,+sse4.1,+sse4.2"
error "Your CPU does not have the SSE4 instruction set that Virtual DSM requires!" && exit 88
fi
if [ -z "$CPU_MODEL" ]; then