On 2008-10-07, Timothy Normand Miller wrote:
> On Sun, Oct 5, 2008 at 7:05 PM, Petter Urkedal <[EMAIL PROTECTED]> wrote:
> > On 2008-10-05, Timothy Normand Miller wrote:
> >> I decided to go ahead and add the ability to load HQ's scratch memory
> >> from PCI so we could load constants into there.  I noticed two things.
> >
> > Will this be a separate BAR, or can we map some range from one of the
> > existing BARs to the scratch memory?  We can write small routine in
> > poll_pci which handles writes to scratch space, without extra hardware.
> 
> I've checked in the changes to allow the scratch memory to be written
> to via PCI.

Excellent!  I've updated oga1hqsim to upload the memory image.  The
"global" directive now works.  Here is my test case:

include SIM

global G_AA: 0x1000aa00
global G_BC: 0xb, 0xc
global G_D: 0xdee

        move [G_AA], r0
        move [G_BC], r1
        move [G_BC + 1], r2
        move [G_D], r3
        noop
        jump SIM_DUMP, r31
        noop
        jump SIM_HALT
        noop

_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to