Skip to content

Commit

Permalink
Turn off QEMU_DEBUG by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mchack-work committed Feb 12, 2024
1 parent d96796e commit 9f53f61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CFLAGS = -target riscv32-unknown-none-elf -march=rv32iczmmul -mabi=ilp32 \
-mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common \
-fno-builtin-printf -fno-builtin-putchar -nostdlib -mno-relax -flto \
-Wall -Werror=implicit-function-declaration \
-I $(INCLUDE) -I . -D QEMU_DEBUG
-I $(INCLUDE) -I . # -D QEMU_DEBUG

AS = clang
AR = llvm-ar
Expand Down
2 changes: 2 additions & 0 deletions libcommon/qemu_debug.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (C) - Tillitis AB
// SPDX-License-Identifier: GPL-2.0-only

#ifdef QEMU_DEBUG
#include <stdint.h>
#include <tkey/lib.h>
#include <tkey/qemu_debug.h>
Expand Down Expand Up @@ -102,3 +103,4 @@ void qemu_hexdump(const uint8_t *buf, int len)

qemu_lf();
}
#endif

0 comments on commit 9f53f61

Please sign in to comment.