Bug 3771 - funit-rt-asmstepper isn't source-line portable
Summary: funit-rt-asmstepper isn't source-line portable
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Mike Cvet
URL:
Keywords:
Depends on:
Blocks: 2935
  Show dependency treegraph
 
Reported: 2006-12-20 17:31 UTC by Andrew Cagney
Modified: 2006-12-22 19:20 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-20 17:31:50 UTC
The funit-rt-stepper, as it is currently written:

#if defined __i386__
... i386 code ...
#elif defined x86_64
... x86-64 code ...
#elif defined __powerpc64__
... PowerPC 64 code with its wierd descriptor ...
#elif defined __powerpc__
... PowerPC code ...
#else
#error oops
#endif

can be made portable by writing it as:

#include "assembler.h"

DECLARE_MAIN
NOP
NOP
JUMP
NOP
RETURN
Comment 1 Mike Cvet 2006-12-22 19:20:53 UTC
2006-12-22  Mike Cvet  <mcvet@redhat.com>

	* funit-asm.h: Added. Fixes #3771.
	* funit-rt-asmstepper.c: Removed architecture-specific code.