branch.isa (9552:460cf901acba) branch.isa (12104:edd63f9c6184)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-2005 The Regents of The University of Michigan
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

--- 116 unchanged lines hidden (view full) ---

125 {
126 return branchPC.pc() + 4 + disp;
127 }
128
129 AlphaISA::PCState
130 Jump::branchTarget(ThreadContext *tc) const
131 {
132 PCState pc = tc->pcState();
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-2005 The Regents of The University of Michigan
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

--- 116 unchanged lines hidden (view full) ---

125 {
126 return branchPC.pc() + 4 + disp;
127 }
128
129 AlphaISA::PCState
130 Jump::branchTarget(ThreadContext *tc) const
131 {
132 PCState pc = tc->pcState();
133 uint64_t Rb = tc->readIntReg(_srcRegIdx[0]);
133 uint64_t Rb = tc->readIntReg(_srcRegIdx[0].regIdx);
134 pc.set((Rb & ~3) | (pc.pc() & 1));
135 return pc;
136 }
137
138 const std::string &
139 PCDependentDisassembly::disassemble(Addr pc,
140 const SymbolTable *symtab) const
141 {

--- 139 unchanged lines hidden ---
134 pc.set((Rb & ~3) | (pc.pc() & 1));
135 return pc;
136 }
137
138 const std::string &
139 PCDependentDisassembly::disassemble(Addr pc,
140 const SymbolTable *symtab) const
141 {

--- 139 unchanged lines hidden ---