summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdbstub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 8b7dd9a530..140ab7f042 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -248,8 +248,8 @@ static int put_packet(char *buf)
return 0;
}
- /* better than nothing for SOFTMMU : we use physical addresses */
-#ifdef CONFIG_SOFTMMU
+/* better than nothing for SOFTMMU : we use physical addresses */
+#if !defined(CONFIG_USER_ONLY)
static int memory_rw(uint8_t *buf, uint32_t addr, int len, int is_write)
{
uint8_t *ptr;