Skip to content

Commit

Permalink
hw/xtensa: fix build for esp32s3 on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Jun 6, 2024
1 parent b9688cd commit 3665d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/xtensa/esp32s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "qemu/error-report.h"
#include "qemu/units.h"
#include "qapi/error.h"
#include "qemu/memalign.h"
#include "hw/hw.h"
#include "hw/boards.h"
#include "hw/loader.h"
Expand All @@ -22,7 +23,6 @@
#include "hw/irq.h"
#include "hw/i2c/i2c.h"
#include "hw/qdev-properties.h"
#include <malloc.h>

#include "qemu/osdep.h"
#include "hw/hw.h"
Expand Down Expand Up @@ -472,7 +472,7 @@ static void esp32s3_soc_init(Object *obj)

object_initialize_child(obj, name, &s->cpu[i], TYPE_ESP32S3_CPU);
// Allocate memory for TIE registers
s->cpu[i].env.ext = memalign(16, sizeof(CPUXtensaEsp32s3State));
s->cpu[i].env.ext = qemu_memalign(16, sizeof(CPUXtensaEsp32s3State));

if (i == 0)
{
Expand Down

0 comments on commit 3665d91

Please sign in to comment.