sim: fix function for emulating dup() The function was using the host fd to obtain the fd object from the simulated process. (transplanted from 024af426b59a5a762e6abed45d168527d4549e0b)
sim: fix function for emulating dup()
The function was using the host fd to obtain the fd object from the simulated
process.
(transplanted from 024af426b59a5a762e6abed45d168527d4549e0b)

andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin