m68k: use correct variable name in boot info string macro
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 25 Jun 2022 15:23:18 +0000 (17:23 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 6 Jul 2022 10:29:59 +0000 (12:29 +0200)
Every time this macro is used, the caller is passing in
"parameters_base", so this bug wasn't spotted. But the actual macro
variable name is "base", so use that instead.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220625152318.120849-1-Jason@zx2c4.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/m68k/bootinfo.h

index adbf0c5521e5dd25ed2f2957e6edd1df2a952874..ff4e155a3cc84b8057a6bf20c16848f098c3de2b 100644 (file)
@@ -54,6 +54,6 @@
             stb_phys(as, base++, string[i]); \
         } \
         stb_phys(as, base++, 0); \
-        base = (parameters_base + 1) & ~1; \
+        base = (base + 1) & ~1; \
     } while (0)
 #endif