linux.hh (13634:748418e0ca3f) | linux.hh (13643:20646ee006b1) |
---|---|
1/* 2 * Copyright (c) 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; --- 182 unchanged lines hidden (view full) --- 191 192 static void 193 archClone(uint64_t flags, 194 Process *pp, Process *cp, 195 ThreadContext *ptc, ThreadContext *ctc, 196 uint64_t stack, uint64_t tls) 197 { 198 RiscvISA::copyRegs(ptc, ctc); | 1/* 2 * Copyright (c) 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; --- 182 unchanged lines hidden (view full) --- 191 192 static void 193 archClone(uint64_t flags, 194 Process *pp, Process *cp, 195 ThreadContext *ptc, ThreadContext *ctc, 196 uint64_t stack, uint64_t tls) 197 { 198 RiscvISA::copyRegs(ptc, ctc); |
199 if (flags & TGT_CLONE_SETTLS) 200 ctc->setIntReg(RiscvISA::ThreadPointerReg, tls); |
|
199 if (stack) 200 ctc->setIntReg(RiscvISA::StackPointerReg, stack); 201 } 202}; 203 204class RiscvLinux32 : public Linux 205{ 206 public: --- 168 unchanged lines hidden --- | 201 if (stack) 202 ctc->setIntReg(RiscvISA::StackPointerReg, stack); 203 } 204}; 205 206class RiscvLinux32 : public Linux 207{ 208 public: --- 168 unchanged lines hidden --- |