From 105aee506d8cf44841c096ff939d528b08749b6f Mon Sep 17 00:00:00 2001 From: Rick Gibbed Date: Sun, 2 Jun 2013 07:56:17 -0700 Subject: [PATCH] dcbf disasm. --- src/xenia/cpu/ppc/disasm_memory.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/ppc/disasm_memory.cc b/src/xenia/cpu/ppc/disasm_memory.cc index 1fac5052f..4b1b0e9fb 100644 --- a/src/xenia/cpu/ppc/disasm_memory.cc +++ b/src/xenia/cpu/ppc/disasm_memory.cc @@ -744,8 +744,19 @@ XEDISASMR(stfsx, 0x7C00052E, X )(InstrData& i, InstrDisasm& d) { // Cache management (A-27) XEDISASMR(dcbf, 0x7C0000AC, X )(InstrData& i, InstrDisasm& d) { - XEINSTRNOTIMPLEMENTED(); - return 1; + d.Init("dcbf", "Data Cache Block Flush", 0); + /* + switch (i.X.RT & 3) + { + case 0: "dcbf"; + case 1: "dcbfl" + case 2: RESERVED + case 3: "dcbflp" + } + */ + d.AddRegOperand(InstrRegister::kGPR, i.X.RA, InstrRegister::kRead); + d.AddRegOperand(InstrRegister::kGPR, i.X.RB, InstrRegister::kRead); + return d.Finish(); } XEDISASMR(dcbst, 0x7C00006C, X )(InstrData& i, InstrDisasm& d) {