🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #597

Help: Memory control for another thread

#597
From: michael
Date: Wed, 08 Apr 1992 20:35
33 lines
1617 bytes
I need help with something.

I want to do an emulation of another 68000 based machine. I've decided to
go at the hardware level, and really simulate the other machine.

The idea is that I will have several threads, one will be executing the
native code for the other machine, and accessing memory; and a second
one that will start up the first one, set up its memory map so that the
addresses for #1 that correspond to hardware are trapped by the #2,
and it will then return the results to the first one.

I need help with this.

Specifically, what I've come up with so far is that I can mark addresses
as not readable or not writable, so that an attempt will trap, and I can
set the thread exception to be my other thread. But I still need to determine
what address was being accessed, and if it was a write, what value was going
there; or if it was a read, I need to be able to return a value. This is
what I don't know how to do.

Any ideas?

		Michael
-- 
		Michael Gersten		michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature

-- 
		Michael Gersten		michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature
Technical Details
Message-ID: <1992Apr8.203517.1009@stb.info.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!mips!daver!dlb!zygot!denwa!stb!michael

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!mips!daver!dlb!zygot!denwa!stb!michael
From: michael@stb.info.com
Newsgroups: comp.sys.next.programmer
Subject: Help: Memory control for another thread
Message-ID: <1992Apr8.203517.1009@stb.info.com>
Date: 8 Apr 92 20:35:17 GMT
Organization: STB BBS, La, Ca, 310 319 3778
Lines: 33