From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Thread: ffc31,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,gidf4c4f7386e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!b1g2000yql.googlegroups.com!not-for-mail From: jjh Newsgroups: alt.sys.pdp11,comp.sys.dec,vmsnet.pdp-11 Subject: Re: Y3K for PDP-11 Operating Systems Date: Tue, 31 May 2011 11:02:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <982e99c70332e762155dff3bb558fd4b@msgid.frell.theremailer.net> NNTP-Posting-Host: 128.237.28.14 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1306865010 30600 127.0.0.1 (31 May 2011 18:03:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 31 May 2011 18:03:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b1g2000yql.googlegroups.com; posting-host=128.237.28.14; posting-account=FRjqegoAAADz_Z3fAICQ1u4DKaXzRcvn User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUHCNK X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322),gzip(gfe) Xref: g2news2.google.com alt.sys.pdp11:2275 comp.sys.dec:3606 vmsnet.pdp-11:686 On May 30, 5:09=A0pm, John Wallace wrote: > On May 27, 2:30=A0am, Fritz Wuehler > > > > > > wrote: > > Johnny Billquist wrote: > > > On 2011-05-26 01.03, Fritz Wuehler wrote: > > > > billg...@cs.uofs.edu (Bill Gunshannon) wrote: > > > > >> I guess the problem with that would be which Unix? =A0:-) > > > >> And even among similar OSes that doesn't always work. =A0BSD has > > > >> "Linux Compatability" but I have seen more programs that didn't > > > >> work under it than did. > > > > > That doesn't make sense. As far as I know it works 100%. > > > > Oh, believe me, it does not. I can easily give you a list of Linux > > > programs you can not run on a BSD system, with Linux compatibility. > > > Not all system calls are emulated perfectly, and sometimes programs h= ave > > > additional tricks going on out in the system, which is even harder to > > > emulate. > > > I only have experience with Linux emulation under NetBSD but in two yea= rs of > > using it with several programs I never saw anything break. I try to avo= id it > > though and now I am much more careful not to build anything with Linux > > dependencies on BSD systems. I really don't like the bloat and RH libs.= I > > guess bottom line is for maybe a hardcore user you can find stuff that > > doesn't work. I don't think a normal desktop user who uses Linux emulat= ion > > will run into problems. Maybe I am wrong but at least the solution is e= asy. > > > > It's two different things. And one does not imply the other. > > > Implementing VMS as a library/program on top of Linux is a whole > > > different ballpark than writing a CPU emulator on top of Linux. > > > I didn't read in the thread anybody was crazy enough to implement VMS o= n top > > of Linux. I wouldn't wish that on my worst enemy. Ok, maybe I would. Th= e > > emulators I know aren't Linux-specific anyway. > > > If you are going to really rewrite VMS or any OS I don't know of any re= ason > > except trying to be el-cheapo like an accountant to do it on top of an > > existing (broken, since we agree all the modern choices suck) OS. Write= it > > to run on the metal. There are enough guys around who can still write x= 86 > > assembly who should be able to make it happen. I hate x86 but there are= n't > > much choices. I dread having to code on a PC since nothing I like runs = on > > one. I am very happy with my work machines (z/OS). Maybe ARM or some ot= her > > RISC chip will come back now that Intel is moving away from desktop and= we > > can actually have a good processor to code on again. > > > > The requirements for the emulator of the CPU is that you need to perf= orm > > > the rather well defined, and limited set of operations that the CPU > > > perform. > > > That's not true. I can think of at least two major architectures where > > although the ISA is defined, many things are implementation specific. S= parc > > and System Z fall into those categories. If you think it's a simple mat= ter > > of just hard work to write a Z emulator like they did (Hercules390.org)= then > > look at the IBM manual called z Architecture Principles of Operation. I > > think it's about 1600 pages. That's just the description of the ISA and= CPU > > environment. Nothing about the OS is included. Even pure x86 emulation = today > > would be extremely difficult, the instruction set is huge. > > > > The OS on the other hand have a very rich set of functions and featur= es. > > > Mostly well documented, admittedly, but some of those functions can b= e > > > much harder to implement on a OS that have a different paradigm. > > > Right, so do it on the metal. The whole point is making the OS you want= . Why > > cripple it from the start by tying it to a system you don't want? > > > Interesting what Palm did in their last versions. All Palm was M68K unt= il > > the last models, they started to use ARM cores. They built a hardware > > emulation layer of M68K on the ARM so 68K or ARM code would run. > > > If you want to approach the VMS project in a similar way you could begi= n by > > writing a VMS emulation layer on x86 and then writing your OS on top of= the > > VMS architecture as if there were no x86 issues. Having the emulation l= ayer > > separated from the OS will make everything nice and clean. It will also= give > > you the capability to run the same OS on FPGA if you code your emulatio= n > > layer, you won't have dependency on the metal. You will only have an > > architectural dependency, and it will be safe and sound back here in 19= 55 > > all over again. Main point I think is to break up the project into crea= ting > > emulated VAX machine and new VMS OS. That is what I would do. If you ca= n > > live with the old OS and you can obtain copies then all you have to do = is > > write the hardware emulation and you don't even need to write the OS. > > > I don't know VMS but in general this approach sounds good and doable wi= th > > any OS rewrite IF the OS you want to rewrite was targeted for a differe= nt > > architecture. Some OS are more or less hardware centric and what I sugg= est > > is for those that are very hardware centric because z/OS for example is= very > > much like that. As we know, Linux and UNIX are much less so. It all dep= ends > > on how the OS and hardware work together and were designed. > > "Even pure x86 emulation today would be extremely difficult, the > instruction set is huge. " > > If I've understood you right, you've not seen the PC emulator written > in JavaScript that's floating around the Internerd of late? It > emulates not just the x86 CPU core but also enough PC IO to (in the > distributed demo) get a small Linux booted; there's no obvious > technical reason why it wouldn't do any other x86-based OS. > > It was written by a rather smart chap called Fabrice Bellard (he also > did ffmpeg and QEMU) and I wouldn't like to do it myself but since > it's already available it's no longer extremely difficult, and the > source code isn't *that* huge.- Hide quoted text - > > - Show quoted text - while I agree that software emulation has some benefits, it seems a more reasonable approach is to cast the hw archtecture in an FPGA. I was recently doing this exercise and came across a few implementations of the PDP11 archtecture, and the VAX, that fit on a Xilinx Virtex FPGA. The one design included MMU and unibus emulation, as well as one or two 'standard' DEC peripherals. There are some full blown x86 ip cores around as well. To make the FPGA implementations more 'universal,' the hardware templates for the buses and their associated state machines would have to be done for whatever machine the FPGA board would plug into. Alternatively, if the peripherials would be implemented on the same FPGA, only the interfaces of interest would need to be brought out of the FPGA board, i.e. serial lines, pata or sata disk interface, etc. If native bus compatability is not mandantory, then a lot of the developer boards by various FPGA manufactures could be used. My point is, a lot of the older processor archtectures have close to or 100% compliant IP cores. There is even one for the Apollo 11 Lunar Landar flight computer that runs release B of the lander code. So why struggle with a sw emulation? (aside from the fact that it can easiliy run on a PC). -John