Re: [gem5-users] Zero cost print for debugging/profiling code in se.py

2020-01-10 Thread Steve Reinhardt
The PCEventQueue in src/cpu/pc_event.hh allows you to trigger events on the execution of particular PCs. The difficulty of course is mapping source code to PCs. You would also not be able to pass any data to the event. Using an m5op would incur some small overhead for fetching & executing the op

[gem5-users] more on Nate Binkert

2017-09-23 Thread Steve Reinhardt
Following up on Jason's note to the gem5-dev list, I wanted to share a brief post I wrote for the SIGARCH blog: https://www.sigarch.org/remembering-nathan-binkert I think it's safe to say that gem5 would not exist if it were not for Nate. About 15 years ago, when he was my PhD student at Michigan,

Re: [gem5-users] [gem5-dev] Removal of ALPHA from gem5

2016-10-25 Thread Steve Reinhardt
I agree with Alex: the ISA description system was designed for Alpha, and it remains the purest example of how it was intended to be used, so I think there's some value in keeping it around for that. To me, it should boil down to a cost/benefit consideration. I agree that the benefits are not that

Re: [gem5-users] Micro-op Data Dependency

2016-08-02 Thread Steve Reinhardt
es is > "setIntRegOperand," which takes indices into _destRegIdx rather than > register indices. > > On Mon, Aug 1, 2016 at 10:58 AM, Steve Reinhardt wrote: > >> You don't need to worry about the size of the bitfield in the instruction >> encoding, because the tem

Re: [gem5-users] Micro-op Data Dependency

2016-08-01 Thread Steve Reinhardt
the > minor CPU model problem I described before. > > No, most of the ISA is not microcoded. In fact, as I said, these RMW > instructions are not specified to be microcoded by the ISA, but since they > each have two memory transactions they didn't appear to work unless I split >

Re: [gem5-users] Micro-op Data Dependency

2016-07-30 Thread Steve Reinhardt
. With this code, it works with > minor model, but the final calculated value in the modify-write micro-op > never gets written at the end of the instruction in the O3 model. > > > On Fri, Jul 29, 2016 at 2:50 PM, Steve Reinhardt wrote: > >> I'm still confused about

Re: [gem5-users] Micro-op Data Dependency

2016-07-29 Thread Steve Reinhardt
I'm still confused about the problems you're having. Stores should never be executed speculatively in O3, even without the non-speculative flag. Also, assuming the store micro-op reads a register that is written by the load micro-op, then that true data dependence through the intermediate register

Re: [gem5-users] Micro-op Data Dependency

2016-07-28 Thread Steve Reinhardt
There are really two issues here, I think: 1. Managing the ordering of the two micro-ops in the pipeline, which seems to be the issue you're facing. 2. Providing atomicity when you have multiple cores. I'm surprised you're having problems with #1, because that's the easy part. I'd assume that you

[gem5-users] anyone out there using EIO trace support?

2016-06-03 Thread Steve Reinhardt
If not, we are likely to drop it... so speak up now if you care! Thanks, Steve ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] x86 cmpxchg support

2016-04-19 Thread Steve Reinhardt
Yes. The constraints I mentioned on locked RMWs (and associated patch) only apply to classic caches; ruby already supports locked RMWs in all cases. Steve On Tue, Apr 19, 2016 at 3:22 PM Tanmay Gangwani wrote: > Thanks. And do both ruby and classical memory subsystem support this? > __

Re: [gem5-users] x86 cmpxchg support

2016-04-19 Thread Steve Reinhardt
Both cmpxchg8b and cmpxchg16b are implemented, see: http://grok.gem5.org/xref/gem5/src/arch/x86/isa/insts/general_purpose/semaphores.py#130 This code does rely on the ability to do locked RMWs in the cache, which works fine out of the box for the AtomicSimple and TimingSimple CPUs, but requires th

Re: [gem5-users] I/O device in SE mode

2016-03-13 Thread Steve Reinhardt
Sure. The example config scripts don't instantiate standard I/O devices like hard drives in SE mode because they're not needed, but you can still do it. The recently added GPU model is a good example of something that has some device-like characteristics but is used in SE mode. There are a couple

Re: [gem5-users] Simulating two X86 machines

2016-02-15 Thread Steve Reinhardt
Thanks!! I really appreciate you posting these directions to the mailing list. If you don't mind, it would be even more helpful if we integrated the necessary changes into the code repository (assuming they don't cause any problems in other situations) and added the necessary instructions (and th

Re: [gem5-users] About UpgradeReq and write hit

2016-02-08 Thread Steve Reinhardt
>> >> >> >> See, that's why when the returned resp packet arrives at L1, its >> address(pkt->getAddr()) can't be equal to the target's packet's address >> (&#

Re: [gem5-users] About UpgradeReq and write hit

2016-02-08 Thread Steve Reinhardt
I 0 0 0 >> >> For a shared block, according to the explanation of wikipedia, they can >> be "dirty" (Here the 'dirty" is with respect to memory), We probably >> have several modified copies. But gem5 think they are a

Re: [gem5-users] About UpgradeReq and write hit

2016-02-07 Thread Steve Reinhardt
Upgrade requests are used on a write to a shared copy, to upgrade that copy's state from shared (read-only) to writable. They're generally treated as invalidations. A write hit implies that a cache has an exclusive copy, so it knows that there's no need to send invalidations to lower levels. Ther

Re: [gem5-users] Address Translation wiki page is empty

2016-02-07 Thread Steve Reinhardt
> >> const Addr PageShift = 13; >> > > Is this the correct place to look into ? > > > On Sat, Feb 6, 2016 at 11:54 PM, Steve Reinhardt wrote: > >> There was an effort several years ago to reorganize the documentation on >> the wiki which led to creatin

Re: [gem5-users] Address Translation wiki page is empty

2016-02-06 Thread Steve Reinhardt
There was an effort several years ago to reorganize the documentation on the wiki which led to creating an outline, but then the effort stalled and parts of the outline were not filled in. I expect that's what happened here. If you have specific questions about address translation, feel free to a

Re: [gem5-users] Simple timing CPU hangs for parsec x86 simuatlion?

2016-01-28 Thread Steve Reinhardt
Try it with this patch: http://reviews.gem5.org/r/2691 You may also need 3290 & 3291, if the code uses cmpxchg. Steve On Thu, Jan 28, 2016 at 6:47 AM Timothy Chong wrote: > Hello all, > > I’m trying to run simple timing FS simulation with parsec x86 with 16 > cores. My simulation gets stuck b

Re: [gem5-users] LSQ bottleneck when using X86 TSO

2015-11-03 Thread Steve Reinhardt
your proposal to have separate store-address and store-data micro-ops though. I'd have to look more closely at the code, and unfortunately I don't have time to do that right now. Regards, Steve On Mon, Nov 2, 2015 at 4:12 AM Virendra Kumar Pathak < kumarvir.pat...@gmail.com> wrote:

Re: [gem5-users] [gem5-dev] Dummy process support

2015-09-18 Thread Steve Reinhardt
Hi Jyothish, Can you elaborate on what you're trying to do? How do you end up with a thread context that has no process pointer? When does that thread context get used? Thanks, Steve On Fri, Sep 18, 2015 at 3:30 AM Jyothish Soman wrote: > Just in case anyone faces this later, this made it w

Re: [gem5-users] calcEA() function crashes

2015-08-31 Thread Steve Reinhardt
Which pointer is null? Are you sure it's a memory instruction, and that all the dependencies are satisfied? On Mon, Aug 31, 2015 at 11:42 AM Abhishek Rajgadia wrote: > Dear All, > I am trying to compute effective address by calling calcEA() given in > src/cpu/o3/dyn_inst.hh . But when i call t

Re: [gem5-users] Remote debugging using gdb

2015-08-25 Thread Steve Reinhardt
ctly using gdb in SE mode, and I want to dump stats and create > checkpoints at breakpoints. However, this doesn't work and gem5 panics and > reports: page table fault when accessing virtual address 0... I don't > know if I can call function in remote debugging session. Thanks. &

Re: [gem5-users] Remote debugging using gdb

2015-08-24 Thread Steve Reinhardt
You can call functions from gdb, but most functions are not designed to be called from gdb. What arguments does the function expect, and what arguments are you providing? On Mon, Aug 24, 2015 at 8:13 AM Lingxiao Jia wrote: > Hi all, > > Can anyone help with this issue? I am still not finding ho

Re: [gem5-users] Sources of In-determinism in Full System Simulators

2015-08-16 Thread Steve Reinhardt
epeated runs. > So as andreas mentioned this must be introduced by this specific benchmark. > > Thanks Andreas and Steve. > > On Thu, Aug 13, 2015 at 1:22 PM, Steve Reinhardt wrote: > >> Even with x86 you should be seeing deterministic results. If you are >> regularly

Re: [gem5-users] Sources of In-determinism in Full System Simulators

2015-08-13 Thread Steve Reinhardt
Even with x86 you should be seeing deterministic results. If you are regularly seeing inconsistencies, you can try running two copies with debug tracing (I suggest Exec,ExecMacro,Cache as a starting set of flags) and comparing their output with util/tracdiff to see where they diverge. Steve On T

Re: [gem5-users] Debugging in gdb

2015-08-06 Thread Steve Reinhardt
nks, Steve. I know the pseudo-instruction stuff, but I do want to > generate checkpoint at certain PC. > > On Thu, Aug 6, 2015 at 3:38 AM, Steve Reinhardt wrote: > >> If you're just trying to generate a checkpoint at a particular point in a >> program, you can also insert

Re: [gem5-users] Debugging in gdb

2015-08-06 Thread Steve Reinhardt
If you're just trying to generate a checkpoint at a particular point in a program, you can also insert a pseudo-instruction in the program to cause a checkpoint to be generated without having to figure out the PC value. Steve On Wed, Aug 5, 2015 at 11:34 AM Lingxiao Jia wrote: > Thanks, Patric

Re: [gem5-users] Binary Translation in gem5

2015-07-13 Thread Steve Reinhardt
You are right that each instruction execution is a separate call. There is no binary translation being done. Steve On Mon, Jul 13, 2015 at 11:45 PM Abhishek Joshi wrote: > Hi, > Can anyone please tell if binary translation is implemented in gem5? I > have looked through the code and I am aware

Re: [gem5-users] dual system simulation using multiple event queues

2015-07-08 Thread Steve Reinhardt
Sorry, I had forgotten that getting the multi-queue simulation to run requires an additional patch that's (1) not committed and (2) currently only works for x86. See http://reviews.gem5.org/r/2320. So I guess the question of whether pd-gem5 works with multithreading is something we can just ponder

Re: [gem5-users] SE mode Peripherals

2015-06-30 Thread Steve Reinhardt
or this, which > I'm not very sure how to do it. Is it possible if you can provide me with > some examples? I'm really sorry about all these basic questions, I'm still > very new to gem5. > > Thank you very much. > Best, > Cao > > > > On Jun 28, 2015, a

Re: [gem5-users] SE mode Peripherals

2015-06-28 Thread Steve Reinhardt
ication among the entire > system, I was planning to add an USB drive and monitor its communication, > do you think it's possible to implement it? > I really appreciate your help. > > Best, > Yuting > > On Jun 26, 2015, at 4:15 PM, Steve Reinhardt wrote: > > You

Re: [gem5-users] SE mode Peripherals

2015-06-26 Thread Steve Reinhardt
You can certainly include devices in your system configuration regardless of whether you're using SE or FS mode. Without a device driver, though, it's tricky to actually use use device, unless you've explicitly designed the device for user-mode access, or if your application has its own device driv

[gem5-users] gem5 workshop slides posted

2015-06-21 Thread Steve Reinhardt
Hi everyone, I've uploaded and linked the presentations from last week's gem5 user workshop on the wiki page: http://www.gem5.org/User_workshop_2015#Final_Program Cong Ma has promised to send updated slides, so I have not posted his talk yet. Please let me know if there are any problems with any

Re: [gem5-users] How does scheduler work in SE mode?

2015-06-16 Thread Steve Reinhardt
on is it possible to write/make a scheduler as a new > component by myself? It just does the simplest scheduling work. > > Thanks! > > M.Y. Lin > > > On Sun, 14 Jun 2015 14:06:45 +, Steve Reinhardt wrote > > There is no scheduler in SE mode. The number of hardware

Re: [gem5-users] How does scheduler work in SE mode?

2015-06-14 Thread Steve Reinhardt
There is no scheduler in SE mode. The number of hardware thread contexts (which is the same as the number of cores, unless you have SMT enabled in O3) must be >= the number of software threads that get created, so each software thread gets its own dedicated hardware context and no scheduling is ne

Re: [gem5-users] Gem5 boot time

2015-05-05 Thread Steve Reinhardt
gem5 is a simulator, not an emulator. Nevertheless, those times seem very long, unless you are using the detailed CPU model or something. Steve On May 5, 2015 9:58 PM, "Junaid Shuja" wrote: > Hi, > I was trying to find out boot time of different gem5 (opt, fast) build > options. The gem5.opt boo

Re: [gem5-users] Technical report

2015-05-03 Thread Steve Reinhardt
Hi Tod, Thanks for being willing to share your experiences and configurations. The best way to do that is via the gem5 wiki; you can just create an account and then create a page to hold your information. Let us know if you have any questions. Thanks, Steve On Sun, May 3, 2015 at 5:16 AM, To

Re: [gem5-users] [gem5-dev] Mem Request Assertion fail [VALID_VADDR]

2015-04-17 Thread Steve Reinhardt
Writebacks do not have virtual addresses, as only the physical address is available in the cache tag. Steve On Fri, Apr 17, 2015 at 10:59 AM, Vinayak Bhargav Srinath wrote: > Hi folks, > > Currently, using a work around to prevent this failure incase there is no > Vaddr in the pkt->req by using

Re: [gem5-users] Want to add wiki for gem5 and eclipse development

2015-03-23 Thread Steve Reinhardt
You don't need any permission to edit the wiki... just click "Create Account" in the upper right and go for it. I strongly encourage you to put as much information as possible on the wiki directly so that (1) others can easily update/extend it and (2) we don't have to worry about any links going s

Re: [gem5-users] Ethernet Bandwidth

2015-02-27 Thread Steve Reinhardt via gem5-users
If you look in src/dev/Ethernet.py, you'll see there's a 'speed' parameter on the EtherLink object that lets you set the simulated bandwidth. The details of how you set this will vary depending on your config script, but if you're using the makeDualRoot() function from configs/example/fs.py, then

Re: [gem5-users] What is "format" in *.isa file

2015-02-01 Thread Steve Reinhardt via gem5-users
Unfortunately the page you found is an orphan created during an unfinished attempt to reorganize the documentation. The original (complete, though somewhat out-of-date) documentation is here: http://www.m5sim.org/ISA_description_system In particular, the 'format' section is covered here: http://w

Re: [gem5-users] FS mode with 03CPU withtout caches

2014-11-22 Thread Steve Reinhardt via gem5-users
or the information > > On Sat, Nov 22, 2014 at 2:20 PM, Mitch Hayenga < > mitch.hayenga+g...@gmail.com> wrote: > >> Have you tried running with the O3CPUAll debug flag? That may shed some >> more light on whats happening. Steve's suggestion sounds like a >> po

Re: [gem5-users] Page Table in X86 Architecture

2014-11-22 Thread Steve Reinhardt via gem5-users
;t get any writes, > but they they have writebacks, which are only for evicted dirty lines > or uncached writes? It's ARM FS mode running BBench. > > Jack Harvard > > > On Tue, Oct 7, 2014 at 9:22 PM, Steve Reinhardt via gem5-users > wrote: > > Yes, in FS mode th

Re: [gem5-users] FS mode with 03CPU withtout caches

2014-11-22 Thread Steve Reinhardt via gem5-users
I don't recall the details, but there's some issue with data accesses and instruction fetches sharing the same port to memory with O3 that leads to a livelock (or deadlock?) situation... something like you need to do an ifetch to make forward progress, but every time the port is free you re-issue a

Re: [gem5-users] How to compile gem5 to statically linked program?

2014-11-13 Thread Steve Reinhardt via gem5-users
You'll probably have to modify the linker flags toward the bottom of src/SConscript. Steve On Wed, Nov 12, 2014 at 4:44 PM, ni...@outlook.com via gem5-users < gem5-users@gem5.org> wrote: > Thanks, you means add this in sconstruct file or just in the command line? > > by the way, i tried to add

Re: [gem5-users] MMAP a file in SE mode

2014-10-31 Thread Steve Reinhardt via gem5-users
then simulation runs >> fine without errors but I get '0' values in the result. This is >> understandable. But If I do writeBlob then I always get page fault >> exception exactly at the same clock tick (just before the benchmark >> finishing the execution) >>

Re: [gem5-users] MMAP a file in SE mode

2014-10-31 Thread Steve Reinhardt via gem5-users
, line 160] > Memory Usage: 11788528 KBytes > Program aborted at tick 771687885000 > > Any ideas why 0x2800 range is getting problems by writeBlob? > > Thanks. > > > > On 7 October 2014 15:20, Steve Reinhardt wrote: > >> We have a patch internally that implements mo

Re: [gem5-users] Simulation core of gem5

2014-10-23 Thread Steve Reinhardt via gem5-users
Actually curTick is not a global variable; see src/sim/core.hh: inline Tick curTick() { return _curEventQueue->getCurTick(); } On Thu, Oct 23, 2014 at 2:57 AM, fela via gem5-users wrote: > Hi everyone, > > I didn't find any response to my question so I reformulate it. > curTick is a global v

Re: [gem5-users] thread migration

2014-10-14 Thread Steve Reinhardt via gem5-users
re threads. Is there a way to > migrate software threads from simulation side? > > Thanks. > Sanem. > > Steve Reinhardt > > > The error you're seeing in your second email is precisely because you're >> no >> longer using drain(). Basically you're

Re: [gem5-users] ignore many simObjects from trace with --trace-ignore=EXPR

2014-10-14 Thread Steve Reinhardt via gem5-users
as never worked before. > src/mem/cache/cahe_impl.hh is the generic code used by all the caches. > where can I go to only print trace for L2 cache and ignore icache and > dcache? > > On Sat, Oct 11, 2014 at 12:43 PM, Steve Reinhardt > wrote: > >> It's a little convolute

Re: [gem5-users] Simulation core of gem5

2014-10-14 Thread Steve Reinhardt via gem5-users
vents must happen at least one simulation quantum into the future, * otherwise they risk being scheduled in the past by * handleAsyncInsertions(). On Tue, Oct 14, 2014 at 2:18 AM, fela via gem5-users wrote: > > > Steve Reinhardt via gem5-users gem5.org> writes: > > > > >

Re: [gem5-users] Simulation core of gem5

2014-10-13 Thread Steve Reinhardt via gem5-users
Have you looked at the comments in src/sim/eventq.hh? Are you interested in parallel simulation or the default single-threaded case? Steve On Mon, Oct 13, 2014 at 3:29 AM, fela via gem5-users wrote: > Hi everyone! > > I'm trying to understand the simulation core of gem5. Due to the lack of > d

Re: [gem5-users] ignore many simObjects from trace with --trace-ignore=EXPR

2014-10-11 Thread Steve Reinhardt via gem5-users
i only have one ignore objects. > so can u do me a favor and use the above command in your new version (with > trace* replaced by debug* of course) and see if it's a version issue? if > not where can I go to fix this? > > On Sat, Oct 11, 2014 at 9:37 AM, Steve Reinhar

Re: [gem5-users] thread migration

2014-10-11 Thread Steve Reinhardt via gem5-users
The error you're seeing in your second email is precisely because you're no longer using drain(). Basically you're in trouble if you switch CPUs while there's a cache miss outstanding, because then the cache miss response will come back to the wrong (old) CPU. The point of drain() is to put the s

Re: [gem5-users] ignore many simObjects from trace with --trace-ignore=EXPR

2014-10-11 Thread Steve Reinhardt via gem5-users
Sometimes you've got to use the source... from src/python/m5/main.py: option("--debug-ignore", metavar="EXPR", action='append', split=':', help="Ignore EXPR sim objects") Apparently colon is supposed to be the delimiter. The 'split' option is a Nate extension (see src/python/m5/optio

Re: [gem5-users] PARSEC in Syscall

2014-10-08 Thread Steve Reinhardt via gem5-users
For swaptions you can try increasing the available simulated memory with the --mem-size option. The others it's not so clear. SE mode doesn't support delayed memory allocation, so if canneal is really trying to mmap 0x7fff7000 bytes (almost 32 GB) of address space, you're pretty much out of luck.

Re: [gem5-users] Page Table in X86 Architecture

2014-10-07 Thread Steve Reinhardt via gem5-users
5. Is it bulky at the moment ?! In other words, OS is > the only page table manager in FS mode.?! I've seen you add PageTableEntry > to the new released code! But I could not guess what is the reason behind > that. > > On Tue, Oct 7, 2014 at 6:03 PM, Steve Reinhardt wrote: >

Re: [gem5-users] Page Table in X86 Architecture

2014-10-07 Thread Steve Reinhardt via gem5-users
Are you talking about SE or FS mode? In SE mode, typically the ISA-independent PageTable class is used to hold the page tables, and no walker is needed. In FS mode, the page tables are constructed in the simulated physical memory by the OS running on the simulated platform; we use the page-table

Re: [gem5-users] MMAP a file in SE mode

2014-10-07 Thread Steve Reinhardt via gem5-users
We have a patch internally that implements more of mmap(), but unfortunately it's not quite ready to post. If you just want to do a read mapping (you don't care if writes to the mmap'd region get written back to disk), and you don't mind just reading the whole mmap region in up front (which you ne

Re: [gem5-users] non-determinism in GEM5 stats

2014-09-10 Thread Steve Reinhardt via gem5-users
Even FS simulation should be deterministic. Although slight changes in inputs can have a significant effect if they cause changes in the order of locks etc., with *identical* inputs the simulation should produce *identical* results. Steve On Wed, Sep 10, 2014 at 6:42 PM, biswabandan panda via ge

Re: [gem5-users] Gem5 on multiple cores

2014-08-26 Thread Steve Reinhardt via gem5-users
I'll mention that gem5 does have the foundation for parallelizing a single simulation across multiple cores; see for example http://repo.gem5.org/gem5/rev/2cce74fe359e. However, if you want to model a non-trivial configuration (i.e., one where there is communication between threads), then you have

Re: [gem5-users] Issues with X86 FS O3 classic memory

2014-06-29 Thread Steve Reinhardt via gem5-users
ory) works with both ARM > and ALPHA; would it take significant effort to make it work for x86 as well? > > Thanks, > > Ivan > > > On Sun, Jun 29, 2014 at 1:47 AM, Steve Reinhardt wrote: > >> x86 multi-core with O3 and the classic memory system doesn't work, as the >

Re: [gem5-users] Issues with X86 FS O3 classic memory

2014-06-28 Thread Steve Reinhardt via gem5-users
gt; [] vma_merge+0x1c4/0x2a0 > [] schedule+0x134/0x35a > [] do_brk+0x1aa/0x380 > [] error_exit+0x0/0x84 > > > Code: 48 89 07 48 89 47 08 48 89 47 10 48 89 47 18 48 89 47 20 48 > RIP [] clear_page+0x12/0x40 > RSP > CR2: 49485c48fc01b000 > note: spec.astar_base[849] exited w

Re: [gem5-users] Issues with X86 FS O3 classic memory

2014-06-28 Thread Steve Reinhardt via gem5-users
Sorry, we primarily use SE mode, so we don't have this problem. Is this for a single-core system? Is the error message you see from the kernel or from gem5? Steve On Sat, Jun 28, 2014 at 6:51 PM, Ivan Stalev via gem5-users < gem5-users@gem5.org> wrote: > Is anyone successfully running SPEC200

Re: [gem5-users] Older versions of gem5

2014-06-23 Thread Steve Reinhardt via gem5-users
Clone the repository and use 'hg update' with the -r or -d option to get an older revision. Steve On Sun, Jun 22, 2014 at 11:10 PM, Nihar Rathod via gem5-users < gem5-users@gem5.org> wrote: > Hi all, > > Where can I find older versions of gem5? > I want gem5 version of year 2012. > > Thanks in

Re: [gem5-users] Deadlock problem with Ruby in the newest Gem5

2014-06-21 Thread Steve Reinhardt via gem5-users
If it used to work, and has stopped working, then 'hg bisect' is very useful to identify exactly where it broke. Steve On Sat, Jun 21, 2014 at 1:30 AM, Choi, Wonje via gem5-users < gem5-users@gem5.org> wrote: > Hi Castillo, > > After the simulation was terminated with deadlock message, I have

Re: [gem5-users] Compiling binaries to run with ruby

2014-06-17 Thread Steve Reinhardt via gem5-users
We just ran into this ourselves very recently. We haven't tracked it down, but our suspicion is that there's a bug in the default Ruby protocol (MI_example) that is somehow triggered by the newer version of glibc, or perhaps by the code generated by the newer version of gcc. Please try another Ru

Re: [gem5-users] how to enable Ethernet device for x86 full system

2014-06-13 Thread Steve Reinhardt via gem5-users
Thanks for all the digging into this issue. Are there bugs/changes in gem5 that can be fixed to address this, e.g., changing what's reported by CPUID, or changing some of the parameters in the system configuration? If so, please let us know so that we can update the code. Thanks, Steve On Fr

Re: [gem5-users] building gem5 simulator in full_system mode.

2014-05-22 Thread Steve Reinhardt via gem5-users
The simulator no longer needs to be compiled in full-system or system-call emulation mode; the same binary now supports both. Wherever you read about compiling in full-system mode is out of date. Steve On Thu, May 22, 2014 at 10:58 PM, Ravi Verma via gem5-users < gem5-users@gem5.org> wrote: >

Re: [gem5-users] Doubt in SatisfyCpuSideRequest

2014-05-17 Thread Steve Reinhardt via gem5-users
If core 0's exclusive request reaches the L1-L2 bus before core 1's, then core 0 should suppress the cache response to core 1 and deliver the block directly via a cache-to-cache transfer after it receives (and writes to) its exclusive copy. The L2 would not end up with two MSHR targets, just the o

Re: [gem5-users] LSQ bottleneck when using X86 TSO

2014-05-13 Thread Steve Reinhardt via gem5-users
s good, i will wait for that patch. > > Thank you. > Adrian > > El lun, 05-05-2014 a las 09:22 -0700, Steve Reinhardt via gem5-users > escribió: > > We have an internal patch that generates an exclusive prefetch when a > > store is issued, which greatly relieves the store

Re: [gem5-users] Writeback buffer kills O3 performance, what is it meant to model?

2014-05-12 Thread Steve Reinhardt via gem5-users
Hi all, >>> >>> I have no specific knowledge on what are the buffers modeling or what >>> they should be modeling, but I too have encountered this issue some time >>> ago. Setting a high wbDepth is what I do to work around it (actually, 3 is >>> sufficient f

Re: [gem5-users] Writeback buffer kills O3 performance, what is it meant to model?

2014-05-12 Thread Steve Reinhardt via gem5-users
Hi Paul, I assume you're talking about the 'wbMax' variable? I don't recall it specifically myself, but after looking at the code a bit, the best I can come up with is that there's assumed to be a finite number of buffers somewhere that hold results from the function units before they write back

Re: [gem5-users] LSQ bottleneck when using X86 TSO

2014-05-05 Thread Steve Reinhardt via gem5-users
We have an internal patch that generates an exclusive prefetch when a store is issued, which greatly relieves the store bottleneck. We were in the process of getting it cleaned up to post but things got bogged down somewhere. I'm going to go see what happened to it and if we can revive it. Steve

Re: [gem5-users] x86 full system dual

2014-04-27 Thread Steve Reinhardt
There's no fundamental reason it shouldn't work, though it likely hasn't been tested. It's just a matter of adding a NIC to the PCI bus in an x86 system (if there isn't already one there), using the existing dual-node framework to instantiate two of those systems, and hooking up the two NICs with

Re: [gem5-users] Question about GEM5

2014-03-25 Thread Steve Reinhardt
If you're in syscall emulation mode, each workload is treated completely independently. So for your example of 2X and 5Y benchmarks, you're really running 7 independent benchmarks from gem5's point of view. Unfortunately, this leads to some inaccuracy, since things like code that would be shared a

Re: [gem5-users] redirect output of a simulated program in FS mode

2014-02-08 Thread Steve Reinhardt
You can use the '-d' option to put all of the output files in a different directory for each run. Steve On Fri, Feb 7, 2014 at 9:13 PM, Tod wrote: > It would be pretty easier and nicer, if you write a shell script that > do many simulations for you in a loop, then you can copy the generated

Re: [gem5-users] cache, access, handleFill, satisfyCpuSideRequest, memcpy

2014-01-30 Thread Steve Reinhardt
std::memcpy(blk->data, pkt->getPtr(), blkSize) copies an entire cache block, which is what you want if you are receiving a cache miss response (as in handleFill) or processing a writeback (as in access). pkt->writeDataToBlock(blk->data, blkSize) handles writes that are smaller than a cache block,

Re: [gem5-users] The same workload for each core will be assigned to different physical addresses in a multicore system

2014-01-27 Thread Steve Reinhardt
Yes, in SE multicore mode you can either run multithreaded workloads (where all threads share the same memory) or multiprogrammed workloads (where each thread has its own memory). Right now there's no facility for sharing part of the workload but not all of it (e.g., just the binary). That could

Re: [gem5-users] Wiki problem

2014-01-15 Thread Steve Reinhardt
Yes, I can reproduce that... thanks for pointing it out. Steve On Wed, Jan 15, 2014 at 9:43 AM, Patrick wrote: > Hello, > > Some of the pages in the documentation section of the wiki appear not to > be working. For example, I am unable to access the "Introduction" page > under the "Getting St

Re: [gem5-users] /Build Directory not created during istallation

2014-01-14 Thread Steve Reinhardt
The build directory will not be created until the first time you run scons. Steve On Tue, Jan 14, 2014 at 3:18 AM, abbas abdolali pour wrote: > Hello all, > > Previously I've installed the GEM5 on centOs and all directories and other > folders are exists inside the gem5 folder like /build and I

Re: [gem5-users] Tracing options in gem5 dev version as compared to gem5-stable

2014-01-13 Thread Steve Reinhardt
Those options were renamed --debug-file and --debug-start at some point, but that rename hasn't made it into the stable version yet. Steve On Mon, Jan 13, 2014 at 4:24 PM, Aditya Deshpande < adityamdeshpa...@gmail.com> wrote: > Hi, > > I was using gem5-stable version, the build had a --trace-fi

Re: [gem5-users] Modifying I/O APIC Address range

2014-01-13 Thread Steve Reinhardt
The current APIC address mapping is tied to where the kernel expects to see it, i.e., where it is on the standard PC platform. If you want to support larger memories, you'd have to figure out what the physical address map looks like for PCs with >3GB. Steve On Mon, Jan 13, 2014 at 3:56 AM, Ahma

Re: [gem5-users] Questions regarding modifying builds in gem5

2014-01-10 Thread Steve Reinhardt
You should not modify files under the build directory. The source files you see there are either auto-generated code or just links to the ones under src. SCons automatically tracks dependencies, so if you make changes to the source files under src, then re-running the scons command will take the

Re: [gem5-users] Calling a C++ function in Python

2014-01-02 Thread Steve Reinhardt
ilar way as an > integer would be done, like this: > > example_int = param.Int("Description") > example_vector = param.VectorParam("Description") > > Best regards, > > Alex Tomala > > -- > *From:* Steve Reinhardt > *To:*

Re: [gem5-users] Calling a C++ function in Python

2014-01-02 Thread Steve Reinhardt
n and add the list to the ChildStates > as a parameter. I am wondering how the python list can be converted to a > C++ vector object, as I do not know how. > > Best regards, > > Alex > > -- > *From:* Steve Reinhardt > *To:* Alex Tomala

Re: [gem5-users] Calling a C++ function in Python

2014-01-02 Thread Steve Reinhardt
s your problem here. Steve On Thu, Jan 2, 2014 at 3:48 PM, Alex Tomala wrote: > The method seems to show up in both files, which I have attached to this > email. Looking over the SWIG documentation briefly, I found no problems > with the files. > > - Alex > > -

Re: [gem5-users] Calling a C++ function in Python

2014-01-02 Thread Steve Reinhardt
_ > % (self.__class__.__name__, attr) > AttributeError: object 'ChildStates' has no attribute 'addChild' > > Best regards, > > Alex Tomala > -- > *From:* Steve Reinhardt > *To:* Alex Tomala > *Cc:* gem5 users m

Re: [gem5-users] Calling a C++ function in Python

2014-01-02 Thread Steve Reinhardt
done. > > One day I may add some information to the wiki, but I am a tad busy now. > > Best regards, > > Alex Tomala > -- > *From:* Steve Reinhardt > *To:* Alex Tomala ; gem5 users mailing list < > gem5-users@gem5.org> > *Sent:* Thursday, January

Re: [gem5-users] Calling a C++ function in Python

2014-01-02 Thread Steve Reinhardt
What have you tried and what problems are you having? It should just be a matter of calling 'obj.addChild(x)' on your ChildStates object 'obj'. It looks like you've figured most of this out already, but a lot of the current mechanism was added in this changeset (see particularly the comments in t

Re: [gem5-users] Accelerator in Gem5

2013-12-24 Thread Steve Reinhardt
Take a look at the existing devices in src/dev. A lot of the functionality you need is encapsulated in the base classes in that directory. See http://www.gem5.org/docs/html/classPioDevice.html for a class hierarchy chart. Steve On Fri, Dec 20, 2013 at 12:59 AM, Erfan Azarkhish wrote: > Dear

Re: [gem5-users] m5.opt: error: no such option: --trace-file

2013-11-27 Thread Steve Reinhardt
The --trace-file option was recently renamed to --debug-file to be consistent with other arguments. All the --trace-* arguments are now --debug-*. Steve On Wed, Nov 27, 2013 at 3:57 PM, Xing Niu wrote: > Hi, > > When running GEM5 + Dramsim2 + PARSEC, I encounter a problem: m5.opt: > error: n

Re: [gem5-users] How does iocache work?

2013-11-12 Thread Steve Reinhardt
> Hi, > > I am confused about the way iocache works. I saw the previous explanation : > > > * On Nov 7, 2008, at 7:28 PM, Steve Reinhardt wrote: > Yes, the whole > reason for having an IO cache is to make device > accesses work in coherent > space. An IO cache isn&#

[gem5-users] internship positions at AMD Research

2013-11-12 Thread Steve Reinhardt
AMD Research is seeking student interns interested in extending and enhancing gem5 for projects focusing on the detailed design of high-performance network interfaces. We are looking for candidates who have hands-on experience with gem5, as well as one or more of the following: - I/O device model

Re: [gem5-users] IPC

2013-10-03 Thread Steve Reinhardt
Are you using the default configuration parameters? Are you using the classic cache model or Ruby? There are a handful of performance model issues with the combination of O3 and x86, particularly if you're using Ruby. We have some patches internally here at AMD that we are working to clean up and

Re: [gem5-users] Multicore programs

2013-09-06 Thread Steve Reinhardt
./astar & taskset -pc 1 ./bzip > but the program terminates early. > Can you show me the exact command I should use? > > Thanks, > Yanqi > -- > *From:* gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] on > behalf of Steve Reinhardt [ste.

Re: [gem5-users] Multicore programs

2013-09-05 Thread Steve Reinhardt
If you're in FS mode, then thread scheduling is controlled by Linux. You can run as many programs as you want, just like on a real Linux system, and if you have more runnable threads than cores, they will be time-sliced by the kernel using its internal thread scheduling algorithm. Your ability to

Re: [gem5-users] Can we use Emacs for Gem5 ?

2013-08-09 Thread Steve Reinhardt
I'm not sure exactly what you're asking, but I do almost all my gem5 debugging using xemacs gdb-mode. It works fine for the C++ parts. You can use pdb on the python parts, but sometimes I find it's easier just to add print statements when debugging python. Steve On Fri, Aug 9, 2013 at 4:58 AM,

Re: [gem5-users] Python Object Attributes

2013-07-13 Thread Steve Reinhardt
a) You missed a dot... it's referring to the "port" on the object "system.physmem" b) "m5" is a python package, not an object On Sat, Jul 13, 2013 at 8:04 AM, Zheng Wu wrote: > Hi All, > > I am reading the configuration scripts in python and I am having a > difficult time finding all the attr

  1   2   3   >