34 lines
791 B
C++
34 lines
791 B
C++
#pragma once
|
|
#include <ircolib/types.hpp>
|
|
|
|
namespace weee::core {
|
|
struct mem;
|
|
|
|
struct processor_interface {
|
|
union {
|
|
struct {
|
|
unsigned error : 1;
|
|
unsigned rsw : 1;
|
|
unsigned di : 1;
|
|
unsigned si : 1;
|
|
unsigned exi : 1;
|
|
unsigned ai : 1;
|
|
unsigned dsp : 1;
|
|
unsigned mem : 1;
|
|
unsigned vi : 1;
|
|
unsigned pe_token : 1;
|
|
unsigned pe_finish : 1;
|
|
unsigned cp : 1;
|
|
unsigned debug : 1;
|
|
unsigned hsp : 1;
|
|
unsigned : 18;
|
|
};
|
|
ircolib::u32 raw;
|
|
} intmr;
|
|
|
|
processor_interface(mem &);
|
|
void write32(ircolib::u32, ircolib::u32);
|
|
ircolib::u32 read32(ircolib::u32);
|
|
};
|
|
} // namespace weee::core
|