private static void LogNotTranslated(IBusPeripheral peripheral, SysbusAccessWidth operationWidth, long address, uint?value = null)
        {
            var strBldr = new StringBuilder();

            strBldr.AppendFormat("Attempt to {0} {1} from peripheral that doesn't support {1} interface.", value.HasValue ? "write" : "read", operationWidth);
            strBldr.AppendFormat(" Offset 0x{0:X}", address);
            if (value.HasValue)
            {
                strBldr.AppendFormat(", value 0x{0:X}", value.Value);
            }
            strBldr.Append(".");

            peripheral.Log(LogLevel.Warning, peripheral.GetMachine().SystemBus.DecorateWithCPUNameAndPC(strBldr.ToString()));
        }
示例#2
0
 public static void WriteDoubleWordNotTranslated(this IBusPeripheral peripheral, long address, uint value)
 {
     peripheral.Log(LogLevel.Warning, "Attempt to write dword to peripheral that doesn't support dword interface. Offset 0x{0:X}, value 0x{1:X}.", address, value);
 }
示例#3
0
 public static uint ReadDoubleWordNotTranslated(this IBusPeripheral peripheral, long address)
 {
     peripheral.Log(LogLevel.Warning, "Attempt to read dword from peripheral that doesn't support dword interface. Offset 0x{0:X}.", address);
     return(0);
 }
示例#4
0
 public static void WriteByteNotTranslated(this IBusPeripheral peripheral, long address, byte value)
 {
     peripheral.Log(LogLevel.Warning, "Attempt to write byte to peripheral that doesn't support byte interface. Offset 0x{0:X}, value 0x{1:X}.", address, value);
 }
示例#5
0
 public static byte ReadByteNotTranslated(this IBusPeripheral peripheral, long address)
 {
     peripheral.Log(LogLevel.Warning, "Attempt to read byte from peripheral that doesn't support byte interface. Offset 0x{0:X}.", address);
     return(0);
 }