SCP: Add support to identify a simulator specific release version
Included from Dave Bryan's V3.11 extensions
This commit is contained in:
parent
e611e0ceed
commit
5213e1125d
3 changed files with 6 additions and 0 deletions
BIN
doc/simh.doc
BIN
doc/simh.doc
Binary file not shown.
5
scp.c
5
scp.c
|
@ -451,6 +451,7 @@ t_addr (*sim_vm_parse_addr) (DEVICE *dptr, CONST char *cptr, CONST char **tptr)
|
|||
t_value (*sim_vm_pc_value) (void) = NULL;
|
||||
t_bool (*sim_vm_is_subroutine_call) (t_addr **ret_addrs) = NULL;
|
||||
t_bool (*sim_vm_fprint_stopped) (FILE *st, t_stat reason) = NULL;
|
||||
const char *sim_vm_release = NULL;
|
||||
const char **sim_clock_precalibrate_commands = NULL;
|
||||
|
||||
|
||||
|
@ -5805,6 +5806,10 @@ setenv ("SIM_MINOR", vmin_s, 1);
|
|||
sprintf (vpat_s, "%d", vpat);
|
||||
setenv ("SIM_PATCH", vpat_s, 1);
|
||||
fprintf (st, "%s simulator V%d.%d-%d", sim_name, vmaj, vmin, vpat);
|
||||
if (sim_vm_release != NULL) { /* if a release string is defined */
|
||||
setenv ("SIM_VM_RELEASE", sim_vm_release, 1);
|
||||
fprintf (st, " Release %s", sim_vm_release); /* then display it */
|
||||
}
|
||||
if (vdelt) {
|
||||
sprintf (vdelt_s, "%d", vdelt);
|
||||
setenv ("SIM_DELTA", vdelt_s, 1);
|
||||
|
|
1
scp.h
1
scp.h
|
@ -400,6 +400,7 @@ void sim_aio_activate (ACTIVATE_API caller, UNIT *uptr, int32 event_time);
|
|||
/* VM interface */
|
||||
|
||||
extern char sim_name[64];
|
||||
extern const char *sim_vm_release;
|
||||
extern DEVICE *sim_devices[];
|
||||
extern REG *sim_PC;
|
||||
extern const char *sim_stop_messages[SCPE_BASE];
|
||||
|
|
Loading…
Add table
Reference in a new issue