NetBSD Problem Report #7362
Received: (qmail 6237 invoked from network); 11 Apr 1999 21:24:28 -0000
Message-Id: <199904112108.XAA01963@wiesel.intern>
Date: Sun, 11 Apr 1999 23:08:54 +0200 (CEST)
From: Thomas Gerner <thomas@murmel.camelot.de>
Reply-To: thomas@murmel.camelot.de
To: gnats-bugs@gnats.netbsd.org
Subject: emulators/pcemu doesn't run on m68k
X-Send-Pr-Version: 3.95
>Number: 7362
>Category: pkg
>Synopsis: emulators/pcemu doesn't run on m68k
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 11 14:35:00 +0000 1999
>Closed-Date: Mon Apr 12 06:50:12 +0000 1999
>Last-Modified: Mon Apr 12 06:50:41 +0000 1999
>Originator: Thomas Gerner
>Release: pcemu-1.01a
>Organization:
>Environment:
System: NetBSD wiesel.intern 1.3K NetBSD 1.3K (WIESEL) #1: Sat Mar 13 22:29:45 CET 1999 thomas@wiesel.intern:/usr/src/sys/arch/atari/compile/WIESEL atari
>Description:
pcemu-1.01a is on m68k compiled for little endian because
/usr/include/m68k/endian.h defines LITTLE_ENDIAN, which
is used at pcemu1.01alpha/cpu.h.
>How-To-Repeat:
Build pcemu on m68k and try to run DOS.
>Fix:
*** cpu.h~ Sun Apr 11 22:45:18 1999
--- cpu.h Sun Apr 11 22:46:50 1999
***************
*** 113,125 ****
format and back again. Obviously there is nothing to do for little-endian
machines... */
! #if defined(LITTLE_ENDIAN)
# define ChangeE(x) (WORD)(x)
#else
# define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
#endif
! #if defined(LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS)
# define ReadWord(x) (*(x))
# define WriteWord(x,y) (*(x) = (y))
# define CopyWord(x,y) (*x = *y)
--- 113,125 ----
format and back again. Obviously there is nothing to do for little-endian
machines... */
! #if BYTE_ORDER == LITTLE_ENDIAN
# define ChangeE(x) (WORD)(x)
#else
# define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
#endif
! #if BYTE_ORDER == LITTLE_ENDIAN && !defined(ALIGNED_ACCESS)
# define ReadWord(x) (*(x))
# define WriteWord(x,y) (*(x) = (y))
# define CopyWord(x,y) (*x = *y)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: garbled
State-Changed-When: Sun Apr 11 23:50:12 PDT 1999
State-Changed-Why:
Patch applied. Thanks!
TIm
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.