Hi Brian,
Here is the output that I get if I try to apply the patch:
==========
spin.CS.Princeton.EDU% patch -p1 --verbose < flexus-64bit.diff
Hmm... Looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -c -r -b --exclude=.svn trunk/components/Common/BranchPredictor.cpp
test/components/Common/BranchPredictor.cpp
|*** trunk/components/Common/BranchPredictor.cpp 2007-07-06
14:31:00.000000000 -0400
|--- test/components/Common/BranchPredictor.cpp 2007-10-01
14:39:58.186318000 -0400
--------------------------
Patching file components/Common/BranchPredictor.cpp using Plan A...
Hunk #1 succeeded at 37.
Hunk #2 succeeded at 722.
Hunk #3 succeeded at 737.
patch: **** unexpected end of hunk at line 112
==========
And this is the output that I get with the run-timing-jobs command:
==========
spin.CS.Princeton.EDU% ./run-timing-jobs 0 11 -ma -cfg OoO UniFlex.OoO
Starting initial flexpoint creation of flexus_test with UniFlex.OoO in
/u/cbienia/parsec/bin/flexus-3.0.0/flexus-test-app/runs/cbienia-timing-15Apr
09-185642/flexpoint_000
~/parsec/bin/flexus-3.0.0/flexus-test-app/runs/cbienia-timing-15Apr09-185642
/flexpoint_000/exec ~/parsec/bin/flexus-3.0.0/flexus-test-app
00-directory-tflex
bpred-00
simics-state
simics-state.raw
sys-L1d
sys-L1i
sys-L2
sys-magic-break
Launching job
Opening debug output file: debug.out
Opening debug output file: stats.out
Successfully parsed debug configurations from debug.cfg
Initializing Flexus::ConfigurationManager...done
Initializing Flexus::ComponentManager...done
Entered init_local
1 <startup.cpp:110> {0}- Initializing Flexus.
Flexus (C) 2006 The SimFlex Project
Eric Chung, Michael Ferdman, Brian Gold, Nikos Hardavellas, Jangwook Kim,
Ippokratis Pandis, Minglong Shao, Jared Smolens, Stephen Somogyi,
Evangelos Vlachos, Thomas Wenisch, Roland Wunderlich
Anastassia Ailamaki, Babak Falsafi and James C. Hoe.
Flexus Simics simulator - Built as UniFlex.OoO v3.0
2 <ComponentManager.cpp:81> {0}- Instantiating system with a width factor
of: 1
3 <uFetch.hpp:76> {0}- ufetch port FetchSnoopOut is not wired
4 <Cache.hpp:82> {0}- L1d port BackSideOut_Prefetch is not wired
5 <Cache.hpp:82> {0}- L2 port BackSideOut_Snoop is not wired
6 <Cache.hpp:82> {0}- L2 port BackSideOut_Prefetch is not wired
7 <wiring.cpp:89> {0}- initializing Parameters...
Warning: The 'flexus-UniFlex.OoO-v9-iface-gcc' module unexpectedly defined
the 'Flexus' class
Warning: The 'flexus-UniFlex.OoO-v9-iface-gcc' module unexpectedly defined
the 'SimicsInterface' class
8 <flexus.cpp:378> {0}- Set stat interval to : 50000
9 <flexus.cpp:383> {0}- Set region interval to : 50000
Opening debug output file: trace.out
Successfully parsed debug configurations from iteration.trace.cfg
WARNING: There is no parameter named "-L2:allow_offchip_stream_fetch"
WARNING: There is no parameter named "-L2:bypass_bus"
10 <flexus.cpp:522> {0}- Loading Flexus state from subdirectory
flex_state_in
11 <ComponentManager.cpp:96> {0}- Initalizing components...
12 <FetchAddressGenerateImpl.cpp:90> {0}- Thread[0.0] connected to cpu0
Initial PC: v:000011d98
13 <microArch.cpp:186> {0}- sys-uarch connected to cpu0
14 <MemoryMapImpl.cpp:322> {0}- Page map file page_map.out was not found.
15 <ComponentManager.cpp:127> {0}- Loading state: sys-fag
16 <BranchPredictor.cpp:751> {0}- sys-fag loaded branch predictor. BTB
size: 1024 by 16 Bimodal size: 32768 Meta size: 8192 Gshare size: 13
17 <ComponentManager.cpp:127> {0}- Loading state: sys-ufetch
18 <uFetchImpl.cpp:123> {0}- Loading state: flex_state_in/sys-L1i for ufetch
order L1i cache
19 <ComponentManager.cpp:127> {0}- Loading state: sys-decoder
20 <ComponentManager.cpp:127> {0}- Loading state: sys-uarch
21 <ComponentManager.cpp:127> {0}- Loading state: sys-L1d
22 <ComponentManager.cpp:127> {0}- Loading state: sys-mux
23 <ComponentManager.cpp:127> {0}- Loading state: sys-L2
24 <ComponentManager.cpp:127> {0}- Loading state: sys-memory
25 <ComponentManager.cpp:127> {0}- Loading state: sys-memory-map
26 <MemoryMapImpl.cpp:322> {0}- Page map file page_map.out was not found.
27 <ComponentManager.cpp:127> {0}- Loading state: sys-magic-break
28 <ComponentManager.cpp:131> {0}- Done loading.
Segmentation fault (SIGSEGV) in main thread
The simulation state has been corrupted. Simulation cannot continue.
Please restart Simics.
pure virtual method called
terminate called without an active exception
Fatal signal again - aborting.
Starting initial flexpoint creation of flexus_test with UniFlex.OoO in
/u/cbienia/parsec/bin/flexus-3.0.0/flexus-test-app/runs/cbienia-timing-15Apr
09-185642/flexpoint_001
[...]
==========
Best,
Chris
-----Original Message-----
From: simflex-bounces at ece.cmu.edu [mailto:simflex-bounces at ece.cmu.edu] On
Behalf Of Brian Gold
Sent: Wednesday, April 15, 2009 2:07 PM
To: SimFlex software support
Subject: Re: [Simflex] flexus on 64-bit
Hi Chris,
Can you send us these error messages? Both the output when "Flexus
crashes while the run-timing jobs script is being executed", and the
"I get an error by the patch tool complaining about a malformed diff."
Another option is to build Flexus as a 32-bit library, and run the 32-
bit version of Simics.
- Brian
On Apr 14, 2009, at 11:51 PM, Christian Bienia wrote:
> Hi,
>
> I'm trying to run Flexus 3.0.0 simulations on amd64 machines. I've
> removed
> the rdtsc instruction used by the profiling code as described here:
>
> https://sos.ece.cmu.edu/pipermail/simflex/2007-October/000375.html
>
> I can then do everything up to running sampled timing simulations.
> If I try
> to simulate the test app as described in the Getting Started guide
> then
> Flexus crashes while the run-timing jobs script is being executed.
>
> If I try to apply the patch for 64-bit architectures that was posted
> here:
>
> https://sos.ece.cmu.edu/pipermail/simflex/2008-October/000444.html
>
> I get an error by the patch tool complaining about a malformed diff.
> Has
> anybody a working patch for Flexus 3.0.0 to get the simulator to run
> on
> 64-bit machines? Is there anything else I need to do to to run it on
> amd64
> machines?
>
> Thanks a lot for your answers in advance.
>
> - Chris
>
>
> _______________________________________________
> SimFlex mailing list
> SimFlex at ece.cmu.edu
> https://sos.ece.cmu.edu/mailman/listinfo/simflex
> SimFlex web page: http://www.ece.cmu.edu/~simflex
_______________________________________________
SimFlex mailing list
SimFlex at ece.cmu.edu
https://sos.ece.cmu.edu/mailman/listinfo/simflex
SimFlex web page: http://www.ece.cmu.edu/~simflex