Deleted Added
sdiff udiff text old ( 11723:0596db108c53 ) new ( 11725:eb58f1bbeac8 )
full compact
1/*
2 * Copyright (c) 2013 ARM Limited
3 * Copyright (c) 2014-2015 Sven Karlsson
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

51
52#include "base/types.hh"
53#include "cpu/static_inst.hh"
54#include "cpu/thread_context.hh"
55
56namespace RiscvISA
57{
58
59inline PCState
60buildRetPC(const PCState &curPC, const PCState &callPC)
61{
62 PCState retPC = callPC;
63 retPC.advance();
64 retPC.pc(curPC.npc());
65 return retPC;
66}

--- 55 unchanged lines hidden ---