[Simh] [PATCH 12 of 14] sim_printf_log() changes for I1620
Peter Lund
firefly at vax64.dk
Mon Sep 10 17:09:46 EDT 2007
1 file changed, 2 insertions(+), 5 deletions(-)
I1620/i1620_cpu.c | 7 ++-----
# HG changeset patch
# User Peter Lund <firefly at vax64.dk>
# Date 1189306628 -7200
# Node ID da3e9cdc2db2b9882d1eeef558e38732ec62f5ca
# Parent 927436e7e39957a2862a76b65613700882cb8907
sim_printf_log() changes for I1620
diff -r 927436e7e399 -r da3e9cdc2db2 I1620/i1620_cpu.c
--- a/I1620/i1620_cpu.c Sun Sep 09 04:56:53 2007 +0200
+++ b/I1620/i1620_cpu.c Sun Sep 09 04:57:08 2007 +0200
@@ -134,7 +134,6 @@ extern int32 sim_int_char;
extern int32 sim_int_char;
extern int32 sim_interval;
extern uint32 sim_brk_types, sim_brk_dflt, sim_brk_summ; /* breakpoint info */
-extern FILE *sim_log;
t_stat cpu_ex (t_value *vptr, t_addr addr, UNIT *uptr, int32 sw);
t_stat cpu_dep (t_value val, t_addr addr, UNIT *uptr, int32 sw);
@@ -1949,8 +1948,7 @@ t_stat cpu_set_opt1 (UNIT *uptr, int32 v
t_stat cpu_set_opt1 (UNIT *uptr, int32 val, char *cptr, void *desc)
{
if (cpu_unit.flags & IF_MII) {
- printf ("Feature is standard on 1620 Model 2\n");
- if (sim_log) fprintf (sim_log, "Feature is standard on 1620 Model 2\n");
+ sim_printf_log ("Feature is standard on 1620 Model 2\n");
return SCPE_NOFNC;
}
return SCPE_OK;
@@ -1961,8 +1959,7 @@ t_stat cpu_set_opt2 (UNIT *uptr, int32 v
t_stat cpu_set_opt2 (UNIT *uptr, int32 val, char *cptr, void *desc)
{
if (!(cpu_unit.flags & IF_MII)) {
- printf ("Feature is not available on 1620 Model 1\n");
- if (sim_log) fprintf (sim_log, "Feature is not available on 1620 Model 1\n");
+ sim_printf_log ("Feature is not available on 1620 Model 1\n");
return SCPE_NOFNC;
}
return SCPE_OK;
More information about the Simh
mailing list