process.cc (14014:ce216ee5d886) | process.cc (14020:c9bf7a011602) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 111 unchanged lines hidden (view full) --- 120 }; 121 122 // First argument is the code, second is the address 123 int index = 0; 124 auto process = tc->getProcessPtr(); 125 int code = process->getSyscallArg(tc, index); 126 uint64_t addr = process->getSyscallArg(tc, index); 127 uint64_t fsBase, gsBase; | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 111 unchanged lines hidden (view full) --- 120 }; 121 122 // First argument is the code, second is the address 123 int index = 0; 124 auto process = tc->getProcessPtr(); 125 int code = process->getSyscallArg(tc, index); 126 uint64_t addr = process->getSyscallArg(tc, index); 127 uint64_t fsBase, gsBase; |
128 SETranslatingPortProxy &p = tc->getMemProxy(); | 128 PortProxy &p = tc->getMemProxy(); |
129 switch(code) 130 { 131 // Each of these valid options should actually check addr. 132 case SetFS: 133 tc->setMiscRegNoEffect(MISCREG_FS_BASE, addr); 134 tc->setMiscRegNoEffect(MISCREG_FS_EFF_BASE, addr); 135 return 0; 136 case GetFS: --- 797 unchanged lines hidden --- | 129 switch(code) 130 { 131 // Each of these valid options should actually check addr. 132 case SetFS: 133 tc->setMiscRegNoEffect(MISCREG_FS_BASE, addr); 134 tc->setMiscRegNoEffect(MISCREG_FS_EFF_BASE, addr); 135 return 0; 136 case GetFS: --- 797 unchanged lines hidden --- |