From 5fdbbe0c2c1ce79c582e0b5767d87967433047ad Mon Sep 17 00:00:00 2001
From: Davids Paskevics <davip00@mi.fu-berlin.de>
Date: Tue, 23 May 2023 16:02:06 +0200
Subject: [PATCH] Work around qemu not (yet) emulating the boot ROM's functions

---
 .gdbinit | 2 +-
 Makefile | 5 ++---
 mdk      | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gdbinit b/.gdbinit
index 2b03ba2..e348170 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -1,6 +1,6 @@
 # For debugging the minimal binary
 target extended-remote localhost:1234
 file nothing.elf
-break _reset
+break soc_init
 layout asm
 layout regs
\ No newline at end of file
diff --git a/Makefile b/Makefile
index b4c7501..81f2933 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,7 @@ SOURCES 	= src/nothing.c
 # Comment this line out if you prefer building in docker
 TOOLCHAIN	= riscv32-unknown-elf
 
-EXTRA_CFLAGS ?= -Og -g
+EXTRA_CFLAGS ?= -Og -g -DEMULATOR_HACKS
 EXTRA_LINKFLAGS ?=
 
-include mdk/esp32c3/build.mk
-
+include mdk/esp32c3/build.mk
\ No newline at end of file
diff --git a/mdk b/mdk
index f197453..188c9a6 160000
--- a/mdk
+++ b/mdk
@@ -1 +1 @@
-Subproject commit f197453a15a3130ca62b8ccbb6af65a78942d9e5
+Subproject commit 188c9a6eb244afec1972858853dc7eabdea43e3d
-- 
GitLab