Christian Dietrich
c1f32f5a98
ElfReader: add some convenience functions
2013-03-11 15:29:25 +01:00
Martin Hoffmann
532ec87b27
Merge branch 'master' of ssh://vamos.informatik.uni-erlangen.de:29418/fail
...
Conflicts:
debuggers/t32/src/main.cc
2013-03-11 12:18:49 +01:00
Martin Hoffmann
f586351e79
T32: Dissassembler to evaluate memory instructions.
...
For the T32 variant we have to evaluate the memory
access instruction to find out, which memory address
was accessed.
Dissassmbly by OpenOCDs arm_disassembler.hpp/.cc:
- fine for ARM / Thumb1
- needs fixes for Thumb2 :( (currently doing that..)
2013-03-11 12:17:53 +01:00
Martin Hoffmann
1905b4edc4
T32: Dissassembler to evaluate memory instructions.
...
For the T32 variant we have to evaluate the memory
access instruction to find out, which memory address
was accessed.
Dissassmbly by OpenOCDs arm_disassembler.hpp/.cc:
- fine for ARM / Thumb1
- needs fixes for Thumb2 :( (currently doing that..)
2013-03-08 16:33:02 +01:00
Martin Hoffmann
1fe1dbb3ed
util: Added disassembler using objdump tool.
...
The disassembler disassembles an elf file with
an external objdump tool.
The architecture specific objdump must be configured
via cmake (ARCH_TOOL_PREFIX), e.g. arm-none-eabi- for
arm-none-eabi-objdump.
2013-03-05 21:20:25 +01:00
Martin Hoffmann
010137cf54
T32: Updated to recent T32 API.
2013-03-05 17:29:48 +01:00
Martin Hoffmann
4686c27d3d
ElfReader: Support for Section and Symbol size.
...
- getSection/getSymbol now returns an ElfSymbol reference.
Searching by address now searches if address is within
symbol address and symbol address + size.
So we can test, if we are *within* a function, object or
section and not only at the start address.
2013-03-04 15:18:52 +01:00
Martin Hoffmann
3501050548
T32: FailT32 support for Cortex-M3
...
Currently working:
- Connect/Disconnect, Read CPU info
- CMM Script generation and T32 startup via cmake (make runt32)
- Read/Write Register, Read Program Pointer
- Read/Write Memory
- Single Breakpoint
- Setting Memory Breakpoint
TODO:
- Fix mock aspect for T32_GetRam.
- Fix Thumb2 bit in function addresses from ELFReader
- Evaluate memory breakpoint hit
2013-03-01 12:47:32 +01:00
Martin Hoffmann
5481cbfd39
T32: Default startup scripts for ARM Cortex-M3
2013-02-28 13:03:36 +01:00
Bjoern Doebel
31f4117e4b
Fiasco.OC bochsrc example
...
Add an example bochsrc to run Fiasco.OC.
2013-02-23 03:57:34 +01:00
Martin Hoffmann
a382057aad
Merge branch 'master' of ssh://vamos.informatik.uni-erlangen.de:29418/fail
...
Conflicts:
debuggers/t32/include/T32Connector.hpp
debuggers/t32/src/T32Connector.cc
2013-02-21 12:37:37 +01:00
Martin Hoffmann
447411da9a
T32: Evalute memory map, RangeListener, MemAccess
2013-02-21 12:32:55 +01:00
Martin Hoffmann
6ca8b5af4b
T32: Evalute memory map, RangeListener, MemAccessL
2013-02-17 21:41:30 +01:00
Martin Hoffmann
e66ae5e691
Merge remote-tracking branch 'svnrepo/master'
2013-02-17 18:26:18 +01:00
hoffmann
2c6a4c2d6e
T32: Parsing cli options for T32 fail-client
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2108 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-17 17:01:31 +00:00
Martin Hoffmann and Gerrit Code Review
9048a212ac
Initial empty repository
2013-02-17 17:53:13 +01:00
hoffmann
205c7ec919
T32: Breakpoint test code
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2107 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-16 23:05:07 +00:00
hoffmann
6761268d93
T32: Added BPSingle, central T32 specific api constants
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2106 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-16 23:05:04 +00:00
hoffmann
2e16b8873b
T32: Memory access.
...
Still not tested on real T32.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2105 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-16 22:05:02 +00:00
hoffmann
d86d18bced
T32: Code cleanup.
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2104 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-16 22:05:00 +00:00
hoffmann
39a6415001
T32: Integrated Register read/write calls
...
* Tested without connected Lauterbach.
T32_* functions are mocked via aspect.
* New target t32cli, for sending T32 command cia cli. (for testing)
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2103 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-15 18:06:02 +00:00
hoffmann
a7e5d2373f
cmake/Bochs: Integrated Bochs configure into CMake
...
Bochs' configure options can now be set via ccmake.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2102 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-15 12:34:19 +00:00
hoffmann
425b6e3129
cmake: CMake-style look for VGA lib.
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2101 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-15 12:34:16 +00:00
adrian
7605dfa4c4
wmo-gem5 bugfix: use weather-monitor-gem5 as experiment name in CMakeFile
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2087 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-14 14:45:34 +00:00
adrian
bf9e111b9f
no need for a separate fillRegisterList() method(only called once)
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2086 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-14 14:45:30 +00:00
adrian
e81517645f
doc for X86CPUState added, FIXME removed
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2085 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-14 14:45:26 +00:00
adrian
3cc40e62c7
A few CPUState-related methods should be const (getter)
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2084 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-14 14:45:22 +00:00
adrian
accfba8237
coding-style++, gem5 code doc added
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2083 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-14 14:45:18 +00:00
adrian
c8a9039f36
#error msg for gem5 + x85 added (not supported yet)
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2082 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-14 14:45:13 +00:00
hellwig
93e9ec47a1
todo-list for gem5 added
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2081 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-14 13:50:14 +00:00
hellwig
fdb39c9613
correction of commit 2079
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2080 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-13 13:16:18 +00:00
hellwig
a2830fa140
JobClient: weighting for throughput calculation
...
The new troughput is now calculated as:
0.5*old throughput + 0.5* the current throughput of the last job-set.
This prevents excessive variations in the calculation of the new
throughput.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2079 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-13 13:11:29 +00:00
adrian
4d34a7375a
class-diagram: major updates
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2078 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 14:19:06 +00:00
adrian
7f587d461c
ArmArchitecture::fillRegisterList(): set textual register name appropriately
...
For some reasons, the compiler cannot find a matching Register::setName(const std::string&) although it is implemented in sal/Register.cc. The work around fixes this issue.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2077 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 14:17:49 +00:00
adrian
0303f00d72
ElfReader::getSectionSize(): return type of definition should equal the return type of the declaration (i.e., guest_address_t)
...
This caused a compilation error on ARM (+gem5).
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2076 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 11:54:27 +00:00
adrian
f96f4dd360
typo-fix
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2075 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 10:43:07 +00:00
adrian
b996617a97
ecos_kernel_test: improved dependency check
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2074 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 10:43:03 +00:00
hoffmann
1ce8f0ab12
Refining keso experiment.
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2071 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 00:51:28 +00:00
hoffmann
609ac58c8f
ElfReader now supports section information.
...
ElfReader can now get Section start address,
end address and size by its name.
Or the according section name to any address within
a section
See ElfReader.hpp for API.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2070 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 00:51:25 +00:00
hoffmann
7b7ae8e825
Extended Keso experiment
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2069 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 00:51:22 +00:00
hoffmann
3307987895
Added missing virtual Destructor, fixes gcc warning
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2068 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 00:51:19 +00:00
hoffmann
94214063ac
Fixed whitespaces.
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2067 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-07 00:51:14 +00:00
adrian
5f2364e1a2
ecos_kernel_test: updates due to architecture changes (ElfReader still NOT working properly)
...
At the moment, the experiment only works with a hard-coded address for the _stext symbol because the ElfReader cannot extract the symbol's address from the elf-binary. The experiment has been tested locally with PREREQUISITES = 1 and PREREQUISITES = 0. In the latter case, the test only considered the client/server communication, i.e., no FI has been performed at all (NOT tested yet).
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2066 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-06 15:39:57 +00:00
adrian
d9808c0fca
DEBUG flag in BochsController not needed anymore
...
It is a remnant of former times. ;-)
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2065 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-06 15:39:54 +00:00
adrian
5c4b132550
~SimulatorController: do not free ConcreteCPU object ptr in the base class
...
In fact, delete should be called in the destructor of each derived class (BochsController and Gem5Controller at the moment).
Additionally, this is the reason why ~SimulatorController is declared as virtual.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2064 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-06 15:39:50 +00:00
adrian
552a5fb4ac
coding-style++, comments++, FIXMEs++
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2063 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-06 15:39:46 +00:00
adrian
38b7064189
Make CPUArchitecure::addRegister protected: no need to modify the register config in an experiment
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2062 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-06 15:39:41 +00:00
hsc
8ce25257c3
bugfix: compile with libstdc++-4.7
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2049 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-01 13:57:42 +00:00
hoffmann
287b26a9cf
Added experiment for keso paper.
...
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2048 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-02-01 12:26:40 +00:00
hellwig
6213cc3462
nanojpeg experiment updated (NOT TESTED)
...
The loop is running now until undone already fetched jobs are available.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2045 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2013-01-31 16:33:53 +00:00