home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lsi / 694 next >
Encoding:
Text File  |  1992-11-15  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.lsi
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!ukma!netnews.louisville.edu!starbase.spd.louisville.edu!sysrick
  3. From: sysrick@orion.spd.louisville.edu (Rick McTeague)
  4. Subject: Re: Help needed compiling Magic & Irsim on HP700 series machine
  5. Sender: news@netnews.louisville.edu (Netnews)
  6. Message-ID: <sysrick.721664156@starbase.spd.louisville.edu>
  7. Date: Fri, 13 Nov 1992 14:15:56 GMT
  8. References: <1992Nov12.211256.5202@ll.mit.edu>
  9. Nntp-Posting-Host: orion.spd.louisville.edu
  10. Organization: University of Louisville
  11. Lines: 39
  12.  
  13. In <1992Nov12.211256.5202@ll.mit.edu> killoran@ll.mit.edu (Mike Killoran) writes:
  14.  
  15. >I'm trying to compile irsim (a simulator that comes with
  16. >magic) on an HP 730.  It compiles without errors, but bus
  17. >errors when reading in the parameters file.
  18.  
  19. >It looks like the function which allocates space is not
  20. >aligning the data properly.  Has anyone gotten irsim to
  21. >work on an HP 700 series machine?  I could really use
  22. >some help here.
  23.  
  24. You've got it exactly right. The problem is that a template used for memory
  25. allocation doesn't set things up right for longword alignment on a PA-RISC
  26. processor. Here is a diff of (your source directory path here)/irsim/src/irsim/mem.c
  27.  
  28. diff mem.c mem.c_orig
  29. 93c93
  30. <     double      align[1];
  31. ---
  32. >     int      align[1];
  33. 102c102
  34. <     double          align[1];    /* dummy used to force word alignment */
  35. ---
  36. >     int          align[1];    /* dummy used to force word alignment */
  37. 534d533
  38.  
  39. Rick
  40. -- 
  41.  
  42. Rick McTeague
  43. Electrical Engineering Department, Speed Scientific School
  44. University of Louisville, Louisville, KY 40292
  45. (502) 588-7020
  46.  
  47. Internet: sysrick@starbase.spd.louisville.edu
  48.  
  49. Disclaimer: I'm a stand-up comedian; if anyone takes me seriously, I'm
  50.             doing something wrong!
  51.