Commit graph

3782 commits

Author SHA1 Message Date
Mark Pizzolato
33567b474d Sanity check when detaching a undetached unit. fro Dave Bryan. 2012-04-10 08:09:48 -07:00
Mark Pizzolato
fd702e407b Made automatic startup file be named {sim_name}.rc (i.e. hp2100.rc or vax.rc, etc.) 2012-04-10 07:02:49 -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
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
38bbdd2de9 Added VH to the VAX780 build (makefile and descrip.mms) 2012-03-29 04:05:39 -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
Mark Pizzolato
cf8c54184d Cleaned up build status messages 2012-03-14 17:47:20 -07:00
Mark Pizzolato
eb0f027c47 Cleanup Compiler warning. 2012-03-14 17:21:15 -07:00
Mark Pizzolato
b3102ea86a Foxed size units (words or bytes) consistency issues when creating disks. 2012-03-14 09:09:25 -07:00
Mark Pizzolato
e61d00d539 Added compiler optimizations to gcc builds 2012-03-13 07:07:28 -07:00
Mark Pizzolato
0abfa9306b Merge branch 'master' of github.com:markpizz/simh 2012-03-13 06:54:46 -07:00
Mark Pizzolato
f07f08b877 Proper declarations to avoid compiler warnings 2012-03-13 06:53:36 -07:00
Mark Pizzolato
57c961f99a Made references to disk capacity consistent with respect to the units they are kept in (i.e. Words or Bytes). 2012-03-12 06:58:47 -07:00
Mark Pizzolato
1d5dc21dcc Enable Maximum compiler optimization for release build of VAX simulators
this produces a net gain of 20% more instructions executed per second
2012-03-09 09:14:34 -08:00
Mark Pizzolato
8e76a8d081 Fixed cygwin build and execution issue, mostly from Tony Nicholson
Fixed OS/X build issues from Tony Nickolson
Fixed OS/X tap networking startup
Added cygwin host NIC hardware address determination
Made *nix host NIC hardware address determination more robust
2012-03-02 13:27:20 -08:00