Fix issue with asm_target initialized multiple times as mentioned in #989

This commit is contained in:
Christoffer Lerno
2023-09-14 10:38:02 +02:00
parent 2eddda9061
commit 44fafdbd7c

View File

@@ -430,6 +430,7 @@ static void init_asm_x86(void)
void init_asm(void)
{
if (asm_target.initialized) return;
asm_target.initialized = true;
switch (platform_target.arch)
{
case ARCH_UNSUPPORTED: