M68K: drop the platform_type field, the enum is gone from OS.h
This commit is contained in:
@@ -23,13 +23,12 @@ namespace BPrivate {
|
|||||||
|
|
||||||
class M68KPlatform {
|
class M68KPlatform {
|
||||||
public:
|
public:
|
||||||
M68KPlatform(platform_type platformType, m68k_platform_type m68kPlatformType);
|
M68KPlatform(m68k_platform_type platformType);
|
||||||
virtual ~M68KPlatform();
|
virtual ~M68KPlatform();
|
||||||
|
|
||||||
static M68KPlatform *Default();
|
static M68KPlatform *Default();
|
||||||
|
|
||||||
inline platform_type PlatformType() const { return fPlatformType; }
|
inline m68k_platform_type PlatformType() const { return fPlatformType; }
|
||||||
inline m68k_platform_type M68KPlatformType() const { return fM68KPlatformType; }
|
|
||||||
|
|
||||||
virtual status_t Init(struct kernel_args *kernelArgs) = 0;
|
virtual status_t Init(struct kernel_args *kernelArgs) = 0;
|
||||||
virtual status_t InitSerialDebug(struct kernel_args *kernelArgs) = 0;
|
virtual status_t InitSerialDebug(struct kernel_args *kernelArgs) = 0;
|
||||||
@@ -60,8 +59,7 @@ public:
|
|||||||
virtual void ShutDown(bool reboot) = 0;
|
virtual void ShutDown(bool reboot) = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
m68k_platform_type fM68KPlatformType;
|
m68k_platform_type fPlatformType;
|
||||||
platform_type fPlatformType;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,8 @@ static M68KPlatform *sM68KPlatform;
|
|||||||
|
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
M68KPlatform::M68KPlatform(platform_type platformType,
|
M68KPlatform::M68KPlatform(m68k_platform_type platformType)
|
||||||
m68k_platform_type m68kPlatformType)
|
: fPlatformType(platformType)
|
||||||
: fPlatformType(platformType),
|
|
||||||
fM68KPlatformType(m68kPlatformType)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ M68KAtari::RTC::ReadReg(uint32 reg)
|
|||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
M68KAtari::M68KAtari()
|
M68KAtari::M68KAtari()
|
||||||
: M68KPlatform(B_ATARI_PLATFORM, M68K_PLATFORM_ATARI)
|
: M68KPlatform(M68K_PLATFORM_ATARI)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user