Bug 3720

Summary: frysk.proc.MachineType wrong when 32-on-64
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Tim Moore <timoore>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3387    

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.