We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9688cd commit 3665d91Copy full SHA for 3665d91
hw/xtensa/esp32s3.c
@@ -13,6 +13,7 @@
13
#include "qemu/error-report.h"
14
#include "qemu/units.h"
15
#include "qapi/error.h"
16
+#include "qemu/memalign.h"
17
#include "hw/hw.h"
18
#include "hw/boards.h"
19
#include "hw/loader.h"
@@ -22,7 +23,6 @@
22
23
#include "hw/irq.h"
24
#include "hw/i2c/i2c.h"
25
#include "hw/qdev-properties.h"
-#include <malloc.h>
26
27
#include "qemu/osdep.h"
28
@@ -472,7 +472,7 @@ static void esp32s3_soc_init(Object *obj)
472
473
object_initialize_child(obj, name, &s->cpu[i], TYPE_ESP32S3_CPU);
474
// Allocate memory for TIE registers
475
- s->cpu[i].env.ext = memalign(16, sizeof(CPUXtensaEsp32s3State));
+ s->cpu[i].env.ext = qemu_memalign(16, sizeof(CPUXtensaEsp32s3State));
476
477
if (i == 0)
478
{
0 commit comments