home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lsi
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!ukma!netnews.louisville.edu!starbase.spd.louisville.edu!sysrick
- From: sysrick@orion.spd.louisville.edu (Rick McTeague)
- Subject: Re: Help needed compiling Magic & Irsim on HP700 series machine
- Sender: news@netnews.louisville.edu (Netnews)
- Message-ID: <sysrick.721664156@starbase.spd.louisville.edu>
- Date: Fri, 13 Nov 1992 14:15:56 GMT
- References: <1992Nov12.211256.5202@ll.mit.edu>
- Nntp-Posting-Host: orion.spd.louisville.edu
- Organization: University of Louisville
- Lines: 39
-
- In <1992Nov12.211256.5202@ll.mit.edu> killoran@ll.mit.edu (Mike Killoran) writes:
-
- >I'm trying to compile irsim (a simulator that comes with
- >magic) on an HP 730. It compiles without errors, but bus
- >errors when reading in the parameters file.
-
- >It looks like the function which allocates space is not
- >aligning the data properly. Has anyone gotten irsim to
- >work on an HP 700 series machine? I could really use
- >some help here.
-
- You've got it exactly right. The problem is that a template used for memory
- allocation doesn't set things up right for longword alignment on a PA-RISC
- processor. Here is a diff of (your source directory path here)/irsim/src/irsim/mem.c
-
- diff mem.c mem.c_orig
- 93c93
- < double align[1];
- ---
- > int align[1];
- 102c102
- < double align[1]; /* dummy used to force word alignment */
- ---
- > int align[1]; /* dummy used to force word alignment */
- 534d533
- <
-
- Rick
- --
-
- Rick McTeague
- Electrical Engineering Department, Speed Scientific School
- University of Louisville, Louisville, KY 40292
- (502) 588-7020
-
- Internet: sysrick@starbase.spd.louisville.edu
-
- Disclaimer: I'm a stand-up comedian; if anyone takes me seriously, I'm
- doing something wrong!
-