summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c6
-rw-r--r--apps/main.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index ec30477..ca06907 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -460,7 +460,7 @@ static bool dbg_flash_id(unsigned* p_manufacturer, unsigned* p_device,
}
#endif /* (CONFIG_CPU == SH7034 || CPU_COLDFIRE) */
-#ifndef SIMULATOR
+#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
#ifdef CPU_PP
static int perfcheck(void)
{
@@ -663,7 +663,7 @@ static bool dbg_hw_info(void)
while (!(action_userabort(TIMEOUT_BLOCK)));
-#elif (CONFIG_PLATFORM & PLATFORM_NATIVE)
+#else
/* Define this function in your target tree */
return __dbg_hw_info();
#endif /* CONFIG_CPU */
@@ -756,7 +756,7 @@ static bool dbg_hw_info(void)
return false;
}
#endif /* !HAVE_LCD_BITMAP */
-#endif /* !SIMULATOR */
+#endif /* PLATFORM_NATIVE */
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
static const char* dbg_partitions_getname(int selected_item, void *data,
diff --git a/apps/main.c b/apps/main.c
index b3252d8..f1f30ce 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -112,9 +112,10 @@
#include "m5636.h"
#endif
-#ifdef SIMULATOR
+#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
#include "sim_tasks.h"
#endif
+
#ifdef HAVE_SDL
#include "system-sdl.h"
#endif