require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_POWERPC_PSL_H_)) {
    eval 'sub _POWERPC_PSL_H_ () {1;}' unless defined(&_POWERPC_PSL_H_);
    eval 'sub PSL_VEC () {0x2000000;}' unless defined(&PSL_VEC);
    eval 'sub PSL_POW () {0x40000;}' unless defined(&PSL_POW);
    eval 'sub PSL_ILE () {0x10000;}' unless defined(&PSL_ILE);
    eval 'sub PSL_EE () {0x8000;}' unless defined(&PSL_EE);
    eval 'sub PSL_PR () {0x4000;}' unless defined(&PSL_PR);
    eval 'sub PSL_FP () {0x2000;}' unless defined(&PSL_FP);
    eval 'sub PSL_ME () {0x1000;}' unless defined(&PSL_ME);
    eval 'sub PSL_FE0 () {0x800;}' unless defined(&PSL_FE0);
    eval 'sub PSL_SE () {0x400;}' unless defined(&PSL_SE);
    eval 'sub PSL_BE () {0x200;}' unless defined(&PSL_BE);
    eval 'sub PSL_FE1 () {0x100;}' unless defined(&PSL_FE1);
    eval 'sub PSL_IP () {0x40;}' unless defined(&PSL_IP);
    eval 'sub PSL_IR () {0x20;}' unless defined(&PSL_IR);
    eval 'sub PSL_DR () {0x10;}' unless defined(&PSL_DR);
    eval 'sub PSL_RI () {0x2;}' unless defined(&PSL_RI);
    eval 'sub PSL_LE () {0x1;}' unless defined(&PSL_LE);
    eval 'sub PSL_FE_DIS () {0;}' unless defined(&PSL_FE_DIS);
    eval 'sub PSL_FE_NONREC () { &PSL_FE1;}' unless defined(&PSL_FE_NONREC);
    eval 'sub PSL_FE_REC () { &PSL_FE0;}' unless defined(&PSL_FE_REC);
    eval 'sub PSL_FE_PREC () {( &PSL_FE0 |  &PSL_FE1);}' unless defined(&PSL_FE_PREC);
    eval 'sub PSL_FE_DFLT () { &PSL_FE_DIS;}' unless defined(&PSL_FE_DFLT);
    eval 'sub PSL_MBO () {0;}' unless defined(&PSL_MBO);
    eval 'sub PSL_MBZ () {0;}' unless defined(&PSL_MBZ);
    eval 'sub PSL_USERSET () {( &PSL_EE |  &PSL_PR |  &PSL_ME |  &PSL_IR |  &PSL_DR |  &PSL_RI);}' unless defined(&PSL_USERSET);
    eval 'sub PSL_USERSTATIC () {( &PSL_USERSET |  &PSL_IP | 0x87c0008c);}' unless defined(&PSL_USERSTATIC);
    require 'machine/intr.ph';
}
1;
