intr_control.cc (8793:5f25086326ac) | intr_control.cc (11150:a8a64cca231b) |
---|---|
1/* 2 * Copyright (c) 2002-2005 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; --- 37 unchanged lines hidden (view full) --- 46{} 47 48void 49IntrControl::post(int cpu_id, int int_num, int index) 50{ 51 DPRINTF(IntrControl, "post %d:%d (cpu %d)\n", int_num, index, cpu_id); 52 std::vector<ThreadContext *> &tcvec = sys->threadContexts; 53 BaseCPU *cpu = tcvec[cpu_id]->getCpuPtr(); | 1/* 2 * Copyright (c) 2002-2005 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; --- 37 unchanged lines hidden (view full) --- 46{} 47 48void 49IntrControl::post(int cpu_id, int int_num, int index) 50{ 51 DPRINTF(IntrControl, "post %d:%d (cpu %d)\n", int_num, index, cpu_id); 52 std::vector<ThreadContext *> &tcvec = sys->threadContexts; 53 BaseCPU *cpu = tcvec[cpu_id]->getCpuPtr(); |
54 cpu->postInterrupt(int_num, index); | 54 cpu->postInterrupt(tcvec[cpu_id]->threadId(), int_num, index); |
55} 56 57void 58IntrControl::clear(int cpu_id, int int_num, int index) 59{ 60 DPRINTF(IntrControl, "clear %d:%d (cpu %d)\n", int_num, index, cpu_id); 61 std::vector<ThreadContext *> &tcvec = sys->threadContexts; 62 BaseCPU *cpu = tcvec[cpu_id]->getCpuPtr(); | 55} 56 57void 58IntrControl::clear(int cpu_id, int int_num, int index) 59{ 60 DPRINTF(IntrControl, "clear %d:%d (cpu %d)\n", int_num, index, cpu_id); 61 std::vector<ThreadContext *> &tcvec = sys->threadContexts; 62 BaseCPU *cpu = tcvec[cpu_id]->getCpuPtr(); |
63 cpu->clearInterrupt(int_num, index); | 63 cpu->clearInterrupt(tcvec[cpu_id]->threadId(), int_num, index); |
64} 65 66IntrControl * 67IntrControlParams::create() 68{ 69 return new IntrControl(this); 70} | 64} 65 66IntrControl * 67IntrControlParams::create() 68{ 69 return new IntrControl(this); 70} |