1
0
mirror of https://github.com/simh/simh.git synced 2026-01-14 07:39:29 +00:00

227 Commits

Author SHA1 Message Date
Mark Pizzolato
42d2802c47 Finish Merge branch 'master' into HP2100Extensions
Conflicts:
	scp.c
	sim_defs.h
2012-04-10 06:59:14 -07:00
Mark Pizzolato
1e319afd68 Partial merge from master branch 2012-04-10 06:17:00 -07:00
Mark Pizzolato
1cb4eb7960 Fixed Asynch I/O issues which may leave pending asynch I/O in limbo when device resets happen (found by Sergey Oboguev) 2012-04-10 05:43:59 -07:00
Mark Pizzolato
a339dae651 Extensive Control Flow Enhancements:
Added Message Suppression flag for status values, including providing a -Q option to the RETURN command to return with a message suppressed status
Added Do command file default extension of .sim (from Dave Bryan)
Added -O option to DO command file invocation which causes the caller's ON state and actions to be inherited in the newly called DO command file
Added Command Line expansion to include a %* which expands to the whole set of arguments (%1 ... %9)
Relaxed Command Line argument substitution (delimited by %'s) which cause environment variable lookups to first lookup the literal name provided and if that fails, lookup the name upcased.
Added a SIM_VERIFY special Command Line expansion variable which expands to "-V" when command echoing is active
Added a SIM_MESSAGE special Command Line expansion variable which expands to "-Q" when error message display is suppressed
Added Command Aliasing, which causes the initial token on a command line to be looked up in the environment variable table, and if it exists to substitute the expansion for the initial token.
Changed environment variable defining (with SET ENV variable=value) to always upcase the variable name.
Added SHIFT command which shifts the numbered argument variables %1 ... %9 to the left by one (%1 becomes what was %2, etc.)
Added CALL command which will call a routine (label) in the currently executing command file
Added SET VERIFY and SET NOVERIFY commands which enable or disable DO command echoing
Added SET MESSAGE and SET NOMESSAGE commands which globally enable or disable the display of status messages when commands (or Do Commands) return with unsuccessful status
Added SET ON INHERIT and SET ON NOINHERIT to globally enable inheritance of ON state and actions when DO commands are invoked
Added PROCEED and IGNORE commands which are do nothing but return success.  These can be used in specific ON actions to possibly ignore particular return status values
Added DO command file line number to error messages which are displayed while processing DO command files
Expanded the DO command nesting level to 20 to potentially allow for more nesting due to the extensive use of CALL commands are used
2012-04-10 05:38:12 -07:00
Mark Pizzolato
40deb20ccd HP2100 update from Dave Bryan 2012-04-04 12:31:43 -07:00
Mark Pizzolato
a14a1ab5cd Added missing synchronization when dispatching asynchronous calls. From Sergey Oboguev 2012-04-04 11:08:56 -07:00
Mark Pizzolato
ab3af3062d - Changed asynch queue insertion and removal to use a lock free algorithm based only on InterlockedCompareExchangePointer. We can now use this lock free approach on IA64 host systems as well.
- Removed flawed logic which assumed that sim_interval was meaningful when referenced by an asynchronous thread.
- Adjust the event_time of events removed from the asynch queue to account for the average time spent on the queue before the event was noticed by the instruction execution thread.
- Added a sim_activate_notbefore function which specifies an rtime which is the earliest time the event should fire.
- Changed the 'wakeup from idle' logic to force an immediate asynch queue check if the wakeup was not due to a timeout (i.e. it was due to an asynch queue insertion).
- Fixed the descrip.mms to build asynchronous support on AXP and IA64 VMS with kernel threads enabled
2012-04-04 11:05:24 -07:00
Mark Pizzolato
7ac3557524 Fixed bug under Asynch I/O where I/O completion did not delay the appropriate time before passing back device status to a simulator. Found by Sergey Oboguev. 2012-04-02 14:05:12 -07:00
Mark Pizzolato
6e6fdd02ae Fixed VMS Build of DEBUG simulators 2012-03-31 14:43:59 -07:00
Mark Pizzolato
518d268bea Added command alias support 2012-03-30 12:39:22 -07:00
Mark Pizzolato
4a78242c6f Cleaner GCC options detection on older GCC versions on varioous platforms
Added missing host NIC MAC address determination for VMS hosts
2012-03-30 10:58:01 -07:00
Mark Pizzolato
9449c1fc3f Restored announcing GCC version and build options lost in manual merge from v3.9-0-rc2 2012-03-29 09:12:08 -07:00
Mark Pizzolato
3a89ffe9bb Added -Q option to RETURN with a specific status, and an always implied -Q when returning the last command status since presumably the related message has already been displayed. 2012-03-29 08:16:55 -07:00
Mark Pizzolato
38bbdd2de9 Added VH to the VAX780 build (makefile and descrip.mms) 2012-03-29 04:05:39 -07:00
Mark Pizzolato
b0a3bf6f4e Help message and minor formatting cleanup 2012-03-28 12:08:17 -07:00
Mark Pizzolato
8619674d19 Fixed regression of echo state. Echo is not explicitly inherited by nested do command files. 2012-03-28 05:08:39 -07:00
Mark Pizzolato
72d209fbe5 Added sub_args expansion of %* to mean insert all args %1..%9 2012-03-28 04:49:54 -07:00
Mark Pizzolato
4510ca64c0 Added do_cmd option -O to inherit ON condition actions from caller
Added %SIM_VERIFY% name expansion as "-V" or "" depending on the current do command echo state
Added recording of last command failure status for interactive entered commands
2012-03-28 03:50:22 -07:00
Mark Pizzolato
88786f974e Interpret message suppression flag SCPE_NOMESSAGE for commands entered interactively as well. 2012-03-27 19:33:42 -07:00
Mark Pizzolato
00dfc21bf0 Exposed a means of general disabling message printing to commands while passing back status information. 2012-03-27 19:12:40 -07:00
Mark Pizzolato
693b75c00e Initial Merge of Dave Bryan's localfixes to run the HP diagnostics 2012-03-26 17:17:44 -07:00
Mark Pizzolato
7e68046c59 Added VH to VAX780 Visual Studio Project 2012-03-26 12:17:30 -07:00
Mark Pizzolato
7ea8831c7b Added do command default file extension for file being opened of '.sim' 2012-03-26 12:17:07 -07:00
Mark Pizzolato
0dd5185099 Added VH device to the VAX780 2012-03-26 11:53:06 -07:00
Mark Pizzolato
8cc2ef03c7 Fixed regression in handling (ignoring) error conditions while processing simple do file. 2012-03-26 04:59:46 -07:00
Mark Pizzolato
027c921cfc More robust and correct readline support and fix to VMS build for HP2100 2012-03-25 15:55:36 -07:00
Mark Pizzolato
c205070554 Fix makefile for better GCC version determination and optimization enabling on more platforms 2012-03-25 07:36:37 -07:00
Mark Pizzolato
6e813b8364 Merge with v3.9-0-rc2 first pass 2012-03-24 19:46:37 -07:00
Mark Pizzolato
6d11b3bd25 Updated HP2100 from Dave Bryan 2012-03-24 12:52:22 -07:00
Mark Pizzolato
8255ba9379 Fixed typo in prior correction 2012-03-23 15:57:26 -07:00
Mark Pizzolato
7d07c49e3f Credit Matt Burke for PCAP-VMS revisions 2012-03-23 13:06:37 -07:00
Mark Pizzolato
380625e404 Fixed vax build issue when building on a vax. 2012-03-23 13:05:36 -07:00
Mark Pizzolato
3cc10c3f71 Fixed vax build issue when building on a vax. 2012-03-23 12:40:20 -07:00
Mark Pizzolato
7c51414228 Fixed sim_debug macro implementation to allow for the case when a sim_debug invocation is used as a single expression following an if condition. Found by Michael Bloom 2012-03-23 12:39:42 -07:00
Mark Pizzolato
5863e1bc38 HP2100 Update from Dave Bryan 2012-03-23 11:11:07 -07:00
Mark Pizzolato
e0fbfa6abf Fix memory leaks in attach error paths. 2012-03-22 16:14:30 -07:00
Mark Pizzolato
2fcb0aad62 Made VMS build more robust and the failure case when VMS-PCAP is missing provide guidance. 2012-03-22 14:37:01 -07:00
Mark Pizzolato
0270d0ea0d Cleanup based on reports from Michael Bloom 2012-03-22 12:20:00 -07:00
Mark Pizzolato
3049f16af2 Compiler detected unsigned bug 2012-03-21 14:46:34 -07:00
Mark Pizzolato
5284f8f1e6 VMS Build cleanup 2012-03-21 14:45:59 -07:00
Mark Pizzolato
45246a3339 Updated HP2100 from Dave Bryan 2012-03-21 06:14:01 -07:00
Mark Pizzolato
663b25818b Fix potential memory leak in error path reported by Michael Bloom 2012-03-20 18:57:02 -07:00
Mark Pizzolato
cf280ad8f7 Completing merge of v3.9-0-rc1 compile cleanups 2012-03-20 18:55:45 -07:00
Mark Pizzolato
2b43b358a8 Fix SHOW SHOW command to separate the SHOW options which are device specific and unit specific 2012-03-20 11:16:41 -07:00
Mark Pizzolato
3ccd66d546 Cleanup potential fault in eth_close if eth_close is called with a NULL argument. 2012-03-20 11:16:00 -07:00
Mark Pizzolato
93f14f76fb Compile cleanups 2012-03-20 11:13:17 -07:00
Mark Pizzolato
1945465a5e Revised makefile to build with gcc 3.x as well as different 4.x versions and to dynamically determine the availability of desired features and to report the GCC version at build time. 2012-03-20 08:54:44 -07:00
Mark Pizzolato
fabdf73bed Compiler cleanup after v3.9-0 merge 2012-03-19 16:07:36 -07:00
Mark Pizzolato
fffad7c20e Merge changes from v3.9-0 rc1 2012-03-19 16:05:24 -07:00
Mark Pizzolato
e04a987353 Added makefile option to compile without asynchronouos I/O support (invoke make with NOASYNCH=1) 2012-03-18 16:47:58 -07:00