pseudo_inst.hh (9457:a4739b6f799d) | pseudo_inst.hh (9659:403a4d20799a) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated 11 * unmodified and in its entirety in all distributions of the software, 12 * modified or unmodified, in source code or in binary form. 13 * |
|
2 * Copyright (c) 2003-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; 9 * redistributions in binary form must reproduce the above copyright --- 23 unchanged lines hidden (view full) --- 33 34class ThreadContext; 35 36//We need the "Tick" and "Addr" data types from here 37#include "base/types.hh" 38 39namespace PseudoInst { 40 | 14 * Copyright (c) 2003-2006 The Regents of The University of Michigan 15 * All rights reserved. 16 * 17 * Redistribution and use in source and binary forms, with or without 18 * modification, are permitted provided that the following conditions are 19 * met: redistributions of source code must retain the above copyright 20 * notice, this list of conditions and the following disclaimer; 21 * redistributions in binary form must reproduce the above copyright --- 23 unchanged lines hidden (view full) --- 45 46class ThreadContext; 47 48//We need the "Tick" and "Addr" data types from here 49#include "base/types.hh" 50 51namespace PseudoInst { 52 |
53/** 54 * Execute a decoded M5 pseudo instruction 55 * 56 * The ISA-specific code is responsible to decode the pseudo inst 57 * function number and subfunction number. After that has been done, 58 * the rest of the instruction can be implemented in an ISA-agnostic 59 * manner using the ISA-specific getArguments functions. 60 * 61 * @param func M5 pseudo op major function number (see utility/m5/m5ops.h) 62 * @param subfunc M5 minor function number. Mainly used for annotations. 63 */ 64uint64_t pseudoInst(ThreadContext *tc, uint8_t func, uint8_t subfunc); 65 |
|
41void arm(ThreadContext *tc); 42void quiesce(ThreadContext *tc); 43void quiesceSkip(ThreadContext *tc); 44void quiesceNs(ThreadContext *tc, uint64_t ns); 45void quiesceCycles(ThreadContext *tc, uint64_t cycles); 46uint64_t quiesceTime(ThreadContext *tc); 47uint64_t readfile(ThreadContext *tc, Addr vaddr, uint64_t len, 48 uint64_t offset); --- 21 unchanged lines hidden --- | 66void arm(ThreadContext *tc); 67void quiesce(ThreadContext *tc); 68void quiesceSkip(ThreadContext *tc); 69void quiesceNs(ThreadContext *tc, uint64_t ns); 70void quiesceCycles(ThreadContext *tc, uint64_t cycles); 71uint64_t quiesceTime(ThreadContext *tc); 72uint64_t readfile(ThreadContext *tc, Addr vaddr, uint64_t len, 73 uint64_t offset); --- 21 unchanged lines hidden --- |