diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-02-01 20:09:41 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-05 19:10:11 +0300 |
commit | e649de10d509026343eb51159bd3791b5f9b11df (patch) | |
tree | 18a96cd52a317ad8765db312a4a08a18783f867f /hw/i386/sgx-stub.c | |
parent | bb28ee11c2f64a1423e78ad5dfcdbcfa79ceb7d6 (diff) | |
download | qemu-e649de10d509026343eb51159bd3791b5f9b11df.zip qemu-e649de10d509026343eb51159bd3791b5f9b11df.tar.gz qemu-e649de10d509026343eb51159bd3791b5f9b11df.tar.bz2 |
target/i386: the sgx_epc_get_section stub is reachable
The sgx_epc_get_section stub is reachable from cpu_x86_cpuid. It
should not assert, instead it should just return true just like
the "real" sgx_epc_get_section does when SGX is disabled.
Reported-by: Vladimír Beneš <vbenes@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20220201190941.106001-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 219615740425d9683588207b40a365e6741691a6)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/i386/sgx-stub.c')
-rw-r--r-- | hw/i386/sgx-stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/sgx-stub.c b/hw/i386/sgx-stub.c index 26833eb..16b1dfd 100644 --- a/hw/i386/sgx-stub.c +++ b/hw/i386/sgx-stub.c @@ -34,5 +34,5 @@ void pc_machine_init_sgx_epc(PCMachineState *pcms) bool sgx_epc_get_section(int section_nr, uint64_t *addr, uint64_t *size) { - g_assert_not_reached(); + return true; } |