Changeset 215


Ignore:
Timestamp:
Jan 5, 2004, 6:08:38 PM (21 years ago)
Author:
Gary Byers
Message:

Opcode/operand stuff's in ARCH package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/backtrace-lds.lisp

    r85 r215  
    604604    (lap-instruction
    605605     (let* ((opcode (lap-instruction-opcode instr))
    606             (opcode-p (typep opcode 'ppc32::opcode))
    607             (name (if opcode-p (ppc32::opcode-name opcode) opcode))
     606            (opcode-p (typep opcode 'ppc::opcode))
     607            (name (if opcode-p (arch::opcode-name opcode) opcode))
    608608            (pc (lap-instruction-address instr))
    609609            (operands (lap-instruction-parsed-operands instr)))
     
    620620                   (let* ((prev-instr (require-type (lap-instruction-pred instr)
    621621                                                    'lap-instruction))
    622                           (prev-name (ppc32::opcode-name (lap-instruction-opcode prev-instr)))
     622                          (prev-name (arch::opcode-name (lap-instruction-opcode prev-instr)))
    623623                          (prev-operands (lap-instruction-parsed-operands prev-instr)))
    624624                     ; Maybe we should recognize the other possible outputs of ppc2-lwi, but I
     
    652652             ((equalp name "b")
    653653              (values :branch (branch-label-address instr (car (last operands))) nil))
    654              ((and opcode-p (eql (ppc32::opcode-majorop opcode) 16))
     654             ((and opcode-p (eql (arch::opcode-majorop opcode) 16))
    655655              (values :branch (branch-label-address instr (car (last operands))) (+ pc 4)))
    656656             (t :regular))))))
Note: See TracChangeset for help on using the changeset viewer.