Bug 3720 - frysk.proc.MachineType wrong when 32-on-64
Summary: frysk.proc.MachineType wrong when 32-on-64
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Tim Moore
URL:
Keywords:
Depends on:
Blocks: 3387
  Show dependency treegraph
 
Reported: 2006-12-14 16:03 UTC by Andrew Cagney
Modified: 2007-02-15 13:50 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-12-14 16:03:19 UTC
The class frysk.proc.MachineType uses frysk.sys.Uname or uname(2) which returns
information on the kernel.

When a 32-bit frysk is run on a 64-bit system, or when frysk is run under an
emulated environment:

   i386 on x86-64 returns x86-64
   i386 on IA-64 returns IA-64?

this information returned isn't useful.  What is instead needed is the ISA that
frysk was built for.

One way to obtain this is from frysk.<blah>.Build (should be moved to
frysk.Config), another is to compile it into a .cxx file and extract it from that.
Comment 1 Tim Moore 2007-02-15 13:50:44 UTC
fixed with 1.2 of frysk-core/frysk/proc/MachineType.java, plus changes elsewhere
to use task.getIsa() instead of MachineType.