From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.189.72 with SMTP id gg8mr14237610pbc.4.1328626236200; Tue, 07 Feb 2012 06:50:36 -0800 (PST) Path: lh20ni270802pbb.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Tue, 07 Feb 2012 14:50:30 GMT Organization: Aioe.org NNTP Server Message-ID: <4f313229.43518694@nntp.aioe.org> References: <4f291473.18988613@nntp.aioe.org> <4f2a3a1e.28631752@nntp.aioe.org> <4f2a8c5a.52418379@nntp.aioe.org> <4f2e5f77.65538828@nntp.aioe.org> <4f2e89be.49241029@nntp.aioe.org> <4f30d0d8.41682905@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: CmgvwL3sOlojnxUjt8znzA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Mon, 06 Feb 2012 17:40:47 +0100, Johnny Billquist wrote: >On 2012-02-06 15.56, Johnny Billquist wrote: >> On 2012-02-06 14.51, paramucho wrote: >>> >>> This explains four things, perhaps: >>> >>> 1. The release note: "MMU. SR1 mechanized". >> >> Right. >> >>> 2. The otherwise cryptic command definition for SET FPBACKOUT (which >>> I'd noted, but not followed up): >>> >>> FPBACKOUT J-11 SR1 behavior, autoinc/dec is always undone on >>> aborted FPP instruction. >>> >>> I'm not sure how this is supposed to work in the real world. >> >> Not sure what that command in E11 do. However, if the changes are backed >> out also on FP instructions, then SR1 will still remain zero at all times. >> >>> 3. And (now) looking further I note the command SET CPU [NO]SR1. I >>> tried it out, but it seems to do nothing. Later. >> >> No idea about that one. Maybe something in combination with the FPBACKOUT? > >Thinking about it, I would possibly have expected this to make SR1 not >even exist. >E11 in general (if I remember right) will just set a whole bunch of >parameters in a predefined way when you say you want a specific model >emulated. You can get the same result (I think), by just setting all the >individual features yourself as well. And some machines don't have an >SR1, so I would have thought this feature would mean just that. >If you do a SET CPU NOSR1 just before booting, can you still access SR1? > >By the way, have you tried playing with UNDOAUTO as well? Nope, and I'll try to resist as well :-) I wrote a better SR1 testbed where all I need to for a new test is fill in a template and insert the new test code. Kernel and user memory are mapped the same space. Par5 is not mapped. The tests are designed to fail at location 120000. An asterix marks the part of the instruction which will cause the trap by trying to access location 120000. TEST0: In the first test, TEST00, we expect the trap to occur after after the source field. R0 should have advanced by 2 and the low byte of SR1 should hold "20", meaning R0 has been incremented by two. SIMH: Test00: mov *(r0)+,(r0)+ Before: R0=120000 SP=744 PC=2064 After: R0=120002 SP=744 Err=1 SR0=100013 SR1=[0|20] SR2=2064 E11: Test00: mov *(r0)+,(r0)+ Before: R0=120000 SP=744 PC=2064 After: R0=120000 SP=744 Err=1 SR0=100013 SR1=[0|0] SR2=2064 As you can see E11 doesn't increment R0 and leaves SR1 null. TEST01: In TEST02 the trap occurs on the destination field. SimH is expected to advance R0 by 4, as shown by the [20|20] SR1. SIMH: Test01: mov (r0)+,*(r0)+ Before: R0=117776 SP=744 PC=2266 After: R0=120002 SP=744 Err=1 SR0=100013 SR1=[20|20] SR2=2266 E11: Test01: mov (r0)+,*(r0)+ Before: R0=117776 SP=744 PC=2266 After: R0=117776 SP=744 Err=1 SR0=100013 SR1=[0|0] SR2=2266 E11 backs the instruction out. TEST02: This test is much the same as TEST00 and shows that MTPx doesn't push anything on the stack in case of an error. SIMH: Test02: mfpi *(r0)+ Before: R0=120000 SP=744 PC=2462 After: R0=120002 SP=744 Err=1 SR0=100153 SR1=[0|20] SR2=2462 E11: Test02: mfpi *(r0)+ Before: R0=120000 SP=744 PC=2462 After: R0=120000 SP=744 Err=1 SR0=100153 SR1=[0|0] SR2=2462 TEST03: I was thinking about SR1 tests while was out riding my bike in circles this evening, and I thought, the most likely place that the E11 tactic would fail with be with MFPx/MTPx. And that's what happens with MTPI. SimH correctly shows that both R0 and SP have been incremented with [20|26]. E11 backs R0 out, but fails to backout SP (it should be 744, not 746). It's a bug, but probably easily fixed. SIMH: Test03: mtpi *(r0)+ Before: R0=120000 SP=744 PC=2700 After: R0=120002 SP=746 Err=1 SR0=100153 SR1=[20|26] SR2=2700 E11: Test03: mtpi *(r0)+ Before: R0=120000 SP=744 PC=2700 After: R0=120000 SP=746 Err=1 SR0=100153 SR1=[0|0] SR2=2700 Now, if only I could my recalcitrant J11 running I could verify all these tests on real iron. Ian