From aaa5fb178a686d4fb537d6eebc45b77ebd67ce5a Mon Sep 17 00:00:00 2001
From: Mark Pizzolato <mark@infocomm.com>
Date: Sun, 17 Feb 2013 04:52:54 -0800
Subject: [PATCH] Added display of large file support status to SHOW VERSION

---
 scp.c     | 4 ++--
 sim_fio.c | 7 +++++++
 sim_fio.h | 1 +
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/scp.c b/scp.c
index 3caf635d..f6ac2b80 100644
--- a/scp.c
+++ b/scp.c
@@ -2741,11 +2741,11 @@ if (vdelt)
 fprintf (st, " %s", SIM_VERSION_MODE);
 #endif
 if (flag)
-    fprintf (st, " [%s, %s, %s]", sim_si64, sim_sa64, sim_snet);
+    fprintf (st, "\n\t[%s, %s, %s, %s]", sim_si64, sim_sa64, sim_snet, sim_slarge_files);
 #if defined(SIM_GIT_COMMIT_ID)
 #define _xstr(a) _str(a)
 #define _str(a) #a
-fprintf (st, "     git commit id: %8.8s", _xstr(SIM_GIT_COMMIT_ID));
+fprintf (st, "%sgit commit id: %8.8s", flag ? "\n        " : "        ", _xstr(SIM_GIT_COMMIT_ID));
 #endif
 fprintf (st, "\n");
 return SCPE_OK;
diff --git a/sim_fio.c b/sim_fio.c
index 720bde9e..d5e2da40 100644
--- a/sim_fio.c
+++ b/sim_fio.c
@@ -364,3 +364,10 @@ return (t_addr)(ftell (st));
 #endif
 
 uint32 sim_taddr_64 = _SIM_IO_FSEEK_EXT_;
+
+const char *sim_slarge_files =
+#if _SIM_IO_FSEEK_EXT == 1
+           "Large File (>2GB) support";
+#else
+           "No Large File support";
+#endif
diff --git a/sim_fio.h b/sim_fio.h
index b0440426..1d88b858 100644
--- a/sim_fio.h
+++ b/sim_fio.h
@@ -50,6 +50,7 @@ void sim_buf_swap_data (void *bptr, size_t size, size_t count);
 void sim_buf_copy_swapped (void *dptr, void *bptr, size_t size, size_t count);
 
 extern uint32 sim_taddr_64;
+extern const char *sim_slarge_files;
 extern int32 sim_end;
 
 #endif