| 1686 | } |
| 1687 | |
| 1688 | static void logER(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1689 | out.append(inst->name); |
| 1690 | out.append(" "); |
| 1691 | if (inst->width==32) { |
| 1692 | outE32(op, out); |
| 1693 | out.append(","); |
| 1694 | outR32(op->reg, out); |
| 1695 | } else if (inst->width==16) { |
| 1696 | outE16(op, out); |
| 1697 | out.append(","); |
| 1698 | outR16(op->reg, out); |
| 1699 | } else if (inst->width==8) { |
| 1700 | outE8(op, out); |
| 1701 | out.append(","); |
| 1702 | outR8(op->reg, out); |
| 1703 | } else { |
| 1704 | kpanic_fmt("unknown width: %d in logER", inst->width); |
| 1705 | } |
| 1706 | } |
| 1707 | |
| 1708 | static void logRE8(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1709 | out.append(inst->name); |