Gabe Black
0592272cff
systemc: Delete authors lists from systemc files.
...
Change-Id: I6c6219732029d5a9db1d317c130086cf2d16a272
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25410
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-18 03:34:18 +00:00
Gabe Black
bdb2820218
dev: Delete the authors list from files in src/dev.
...
Change-Id: I0907a6f1ada3038305c2d83a350a8d435ac657ba
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25403
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-18 03:34:01 +00:00
Giacomo Travaglini
5bf0d60df5
arch-arm: Be more verbose on load/store construction
...
This is achieved by using keyword arguments to improve readibility.
Some of the building helpers are using native types and can be annoying
for a reader to understand what those sequences of number and boolean
mean. It is also easier in this way to commit mistakes.
Change-Id: I63081d09a1f621550c5b6522b8107f349939b21d
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24044
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-17 23:31:17 +00:00
Giacomo Travaglini
92132b2984
base: Use a int to store fgetc return value
...
The stdio fgetc returns the character read as an unsigned char cast to
an int.
The reason why it gets casted from unsigned char to int is because EOF
is defined as a negative value (usually -1).
At the moment in the atomicio.test we store the int in a char.
However the C standard states that the sign of a char is implementation
specific. This makes the test non portable: an architecture/ABI which
which is considering a char as a unsigned char won't compile since a
unsigned value will always be != -1 (EOF).
This is the error message you would get on a aarch64 host /w gcc/5.4.0
build/ARM/base/atomicio.test.cc:121:48:
error: comparison is always true due to limited range of data type
[-Werror=type-limits]
Change-Id: I120e44b5204d98e643f19b8dd6fa2762342a6e64
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25384
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com >
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-17 23:31:03 +00:00
Giacomo Travaglini
8fb933841f
arch-arm: Fix ArmKVM build
...
BaseInterrupts don't have a checkRaw method.
This was breaking gem5 compilation on a Arm machine
Change-Id: I8717b1bcf64ed14e8a0f63a9dcaca6041dbea4d3
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25431
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Reviewed-by: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-17 23:30:14 +00:00
Gabe Black
6687265fe2
cpu: Delete authors lists from the cpu directory.
...
Change-Id: Icfba8e23b5f6820a6ddefe1a50abbe5f8825b7b5
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25444
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 21:51:23 +00:00
Gabe Black
921a72f4f3
mem: Delete authors lists from mem files.
...
Change-Id: I439d64d01950463747446a8177086eb276b8db55
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25443
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 21:51:08 +00:00
Gabe Black
6eb6b346a0
python: Delete authors lists from the python directory.
...
Change-Id: Ia147b90016f56a8ddd0c77b15746f74f50aba7e8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25408
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 21:50:52 +00:00
Gabe Black
0cf61bf419
misc: Delete authors lists from proto.
...
Change-Id: I3ec4f28c82de2f006518ca276f761813d08d7977
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25407
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 21:50:38 +00:00
Gabe Black
e19cf3d375
learning-gem5: Delete authors lists from learning_gem5.
...
Change-Id: I42b6241057dab661aeaad695d48f62f70f163832
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25406
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 21:50:24 +00:00
Gabe Black
0c0f6c0714
misc: Delete authors lists from documentation related files.
...
Change-Id: I6cd78336687c2516a90dba7c56154b03a709f791
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25405
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 21:50:09 +00:00
Giacomo Travaglini
de7ddfc21c
cpu: Mark ExecContext::tcBase() as const
...
Change-Id: Ia3965c05a1b00e0a9738ddbccb4dc0b651f78e5e
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24523
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-17 13:10:26 +00:00
Gabe Black
d60d32ff26
base: Delete authors lists from files in base.
...
Change-Id: I73020efd522489ee152af890ab5e03449bc0a900
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25415
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 10:05:59 +00:00
Gabe Black
71a868224c
gpu-compute: Delete authors lists from gpu-compute files.
...
Change-Id: I72318eb885f9517de325ea9a9af263f36613bf6e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25414
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 10:05:52 +00:00
Gabe Black
5f243a72fc
kern: Delete authors lists from files in kern.
...
Change-Id: Ic82d0172b61b5b84241edf1112148d7383aade97
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25413
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 10:05:42 +00:00
Gabe Black
9164511ef1
scons: Remove authors from the main SConsctruct/SConscript files.
...
Change-Id: I48987ea4d829e722caf16126dd82f2c580e7836a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25412
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 10:05:36 +00:00
Gabe Black
002cb8f78d
tests: Delete authors lists from the unittest directory.
...
Change-Id: Id4c7f5ddb932e427cb42d0698b1a048377d027c2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25409
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
2020-02-17 10:05:19 +00:00
Bobby R. Bruce
c73048df0d
misc: Updated Doxygen to state version as v19.0.0.0
...
Change-Id: I6baf60e1f59c0e856c2184fcb0211ed85a62a794
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25363
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-16 02:50:20 +00:00
Gabe Black
75a3fc0cd6
alpha: Delete the alpha arch files.
...
Change-Id: If8f930c77e5f97156b42f68b3f8a538c8f8bf94c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24652
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-13 23:25:30 +00:00
Gabe Black
4a51a39485
base: Delete alpha loader components.
...
Change-Id: I228ff95af3fea04f8fb96486d5130abe1ab0228f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24651
Tested-by: kokoro <noreply+kokoro@google.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu >
2020-02-13 23:25:23 +00:00
Gabe Black
cb74a5d7ac
dev: Delete alpha devices.
...
Change-Id: Idc41e83d94d39e8e45044a64b22b39cb395947c7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24650
Tested-by: kokoro <noreply+kokoro@google.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu >
2020-02-13 23:25:16 +00:00
Gabe Black
208dcd315e
sim: Remove mention of alpha.
...
Change-Id: Iec6b9284383d380885955438c3693b0d2efc497e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24649
Tested-by: kokoro <noreply+kokoro@google.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu >
2020-02-13 23:25:09 +00:00
Gabe Black
d1fd4311b4
cpu: Remove alpha specialized code.
...
Change-Id: I770132af2f11ed232a100ab8bef942f17789ef36
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24648
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-13 23:25:03 +00:00
Gabe Black
e01ead41c2
scons,arch: Remove simple scalar compatibility.
...
This was primarily in Alpha where disassmbly output could be compatible
(default off, probably not usd in a long time), and floating point
could be compatible (default on). A small bit had crept into x86 from
long ago which is also removed.
Change-Id: Ibb68b63787f370259bd1613b393e0b057c007704
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25012
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-13 19:59:41 +00:00
Gabe Black
9d8f3f9ad3
arm: Don't checkpoint the SystemCounter's "_period" value.
...
This value is just a cached inverse of _freq and can be recalculated
easily once the checkpoint is restored. The actual value of _period
actually depends on the global resolution of time (ie how much time a
Tick represents), and so saving the value of _period is also not
technically correct, even though in practice that will very rarely
cause a problem.
Change-Id: I21e63ba25ac4e189417905e532981f3d80723f19
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24390
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-13 19:40:36 +00:00
Gabe Black
0da40acd80
arm: "Correct" the spelling of flavor.
...
In US English, flavor is spelled flavor, not flavour. The choice of
US spelling is arbitrary but consistent with gem5's history and the
rest of the code base.
Also fix a couple small style issues.
Change-Id: I307f8458fec5918a6fc34f938a4c12955d4d0565
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25010
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-13 19:39:40 +00:00
Gabe Black
eae03bbc9d
arch,cpu: Make the CPU's ISA parameter type BaseISA.
...
This is mostly only a superficial change since the isa parameter is
then dynamic cast to the ISA specific version inside the various
consumers, currently the SimpleThread, O3CPU and Decoder classes. If
those aren't being used, for instance in the fast model CPUs, then you
can use a different ISA implementation without any type clashes.
Change-Id: I2226ef60f9a471ae51b8bfce8683033f7854197a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25009
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-13 19:36:54 +00:00
Gabe Black
135595a4d7
mem: Eliminate the now unused GENERIC_IPR request flag.
...
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Id3aaffa4fa88032fd209c5c3b6f67283a6af1c48
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23187
Tested-by: kokoro <noreply+kokoro@google.com >
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu >
Reviewed-by: Muhammad Sarmad Saeed <mssaeed@ucdavis.edu >
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
2020-02-11 11:58:57 +00:00
Gabe Black
2b63ac0d55
arch: Get rid of the generic mmapped IPR mechanism.
...
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: I4ab6f80581eee39e90fb91c672eca8e1a8fd9046
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23186
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
2020-02-11 11:58:06 +00:00
Gabe Black
1bd9687799
arm: Call pseudoInst directly from the mmapped IPR handlers.
...
The amount of plumbing necessary for the generic IPR mechanism out
weighs its value, considering it's only used for the m5ops.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: I0efcf43904d5f779bef5ad127dd8d39fff41ac39
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23185
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-11 11:56:29 +00:00
Daniel R. Carvalho
f5e84a5fb9
base: Fix squares of stats
...
If a sample V, which has a square(V) = V * V, was seen N times, then
its sum of squares is given by N * square(V).
Change-Id: Ie3fe0e4afe6e79ba4c8a5a56532f9346f79b4029
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25184
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-10 22:35:24 +00:00
Gabe Black
cc2732d5c3
base: Use a const auto & in a range based for loop.
...
clang 11 complains otherwise which breaks the build, and this way
is less verbose and more efficient since it doesn't require copying
a vector of strings for each element of the loop.
Change-Id: I005fa5fdf19ddba2114e98413e3609b0a91c1ec5
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25226
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-10 22:32:06 +00:00
Gabe Black
b82860cc98
riscv: Cast to float explicitly when comparing a float to an int.
...
clang 11 complains that the int value is not represented exactly
otherwise which breaks the build. With this case the comparison is
still the same, but since it's explicit the compiler doesn't warn about
it.
Change-Id: I1d9ffc77e778517d9c6a985ae7aa6c4f1d5b57a2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25225
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Reviewed-by: Alec Roelke <alec.roelke@gmail.com >
Maintainer: Alec Roelke <alec.roelke@gmail.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-10 22:31:57 +00:00
Gabe Black
ed4482bda7
arm: Fix how a bitfield is extracted in some SVE instructions.
...
These instructions were extracting a bitfield by masking it, but then
didn't shift the bit into the correct position. They were then
comparing it with 1, which clang 11 correctly complained would always
be false. That warning became an error which broke the build.
This fixes that problem by switching that line and the few surrounding
lines to use the bits() function which removes the need to manually
mask or shift values. That makes it less likely for there to be a
mistake, and also makes it more obvious which bits are being accessed.
Change-Id: I692214f898e90dc7d5de460d1da2ef6aefda4fb8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25224
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-10 22:31:21 +00:00
Gabe Black
4aa277a865
arch: Add a bunch of missing override specifiers.
...
Missing override on methods which are overriding virtual methods causes
warnings/errors on certain compilers.
Change-Id: I16f565fa07bfcb399a0209cd87f1f9729cd89b2e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25223
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-10 22:31:12 +00:00
Daniel R. Carvalho
7515106ebe
mem-cache,mem-ruby: Move WeightedLRU RP
...
Move the WeightedLRUReplacementPolicy to the replacement policies folder.
Change-Id: I9902faefb6de33343bb65f994be70bd9e1dd4e14
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22445
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
Reviewed-by: John Alsop <johnathan.alsop@amd.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Maintainer: Jason Lowe-Power <jason@lowepower.com >
2020-02-10 12:40:18 +00:00
Giacomo Travaglini
20ed09d1a1
arch-arm: LDTRSW was not marked as unpriviledged
...
Change-Id: If0f2b835e40ef011eba884b1dcd81f14531fd1ce
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com >
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24043
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com >
2020-02-10 09:41:11 +00:00
Earl Ou
6a4d111855
systemc: gem5_to_tlm: treat non-rw as ignorable command
...
Treat all kinds of non read/write requests in gem5_to_tlm bridge as ignorable
commands.
Change-Id: I5236e1b31f9a57470dc666d01cbe96249f48ed5d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25163
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-10 02:44:41 +00:00
Gabe Black
97a0ad7f63
arch,sim: Replace setuidFunc with ignoreFunc.
...
The setuidFunc just ignores the call and warns about it, and that's
what ignoreFunc already does.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: I7655863ed6fe200ff3ac087be3218d49c3c43061
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23194
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-08 13:05:45 +00:00
Gabe Black
97c02b000e
sim: Convert most of the common syscalls to use the guest ABI.
...
A couple tricky instances were left alone for now, specifically one
place where the size of the argument is specified explicitly (the
default ABI always leaves off the size), and two places where the
arguments are variadic which is not yet supported.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: I2ec19bea77d329de3575e17e9f7209f4fd871aa6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23193
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-08 12:59:10 +00:00
Gabe Black
c7cb8bb5d8
sim: Use the Guest ABI mechanism in writeFunc.
...
This change only modifies the writeFunc since it's easy to test using
the hello world test programs.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Ia4a7bacdb9938d9fbe4093fc6958904d6c423360
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23192
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-08 12:58:35 +00:00
Gabe Black
af07a51f0b
arch: Switch SyscallDescABI in for SyscallDesc.
...
This lets system calls accept arguments by putting them in their
signatures.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Ieb32b8b5592d894e493466717613ff16e2a03768
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23191
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-08 12:58:03 +00:00
Gabe Black
a255a2ee64
sim: Add a transitional syscall ABI which defers to Process.
...
This change adds a transitional ABI which just falls back to the
existing Process syscall arg getters. It should be phased out once each
ISA implements its own actual ABI.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Ic40bd924989f91de70bbce59fda888b79bbbfca4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23190
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-08 12:57:22 +00:00
Gabe Black
e0f0351182
arch: Simplify the SyscallDesc tables.
...
By using braced initializer lists and dropping the default
unimplementedFunc implementation function, the SyscallDesc tables
become a lot less crowded, and it's now very obvious which syscalls
are implemented just by quickly visually scanning the table.
This will also make it a lot easier to change the underlying type
stored in the table without having to adjust all of the instances
within them.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: I7821de74812e1c02ca4550fc9c46cc2188cf1bd0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23189
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-08 12:32:10 +00:00
Gabe Black
b3eb2db7e4
x86: Handle m5 op accesses directly in the mmapped IPR handlers.
...
The common handlers only handle the m5ops, and it takes more plumbing
to get to them than to just handle the m5ops directly from x86.
Also, centralizing the call to PseudoInst::pseudoInst prevents
specializing the ABI per-ISA.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Ife9cf0d61ac87605ddc9cf9c84feebb8b23cc33a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23184
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-07 10:57:54 +00:00
Gabe Black
549e0b25e3
sim: Add a function for decoding the field(s) of an m5op address.
...
These have at one time included both a func and subfunc, although the
subfunc was unused and is now excluded.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Ic35ced7a012aa72af5454768f3cbd11b431b061a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23183
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Marjan Fariborz <mfariborz@ucdavis.edu >
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
2020-02-07 07:41:07 +00:00
Gabe Black
e758cd09d8
x86: Use the m5 op range in the system.
...
Don't hard code a range into the TLB.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: I0ead4353672ccf6e3e51ddbb4676be3a09f1136a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23182
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Pouya Fotouhi <pfotouhi@ucdavis.edu >
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
2020-02-07 07:39:47 +00:00
Gabe Black
95c6a839a5
arch,sim: Use _m5opRange in System::allocPhysPages.
...
This removes the hardcoded assumption that the m5 ops live at the
address they use in x86.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Ia551d7cf5b08f926c7756541c92a2af9bb73b88a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23181
Reviewed-by: Gabe Black <gabeblack@google.com >
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-07 07:37:38 +00:00
Gabe Black
206aa5b280
sim: Add a typetraits style mechanism to test for VarArgs.
...
This family of types can be cumbersome to check for when building
ABI rules. This struct template makes that a little easier.
Change-Id: Ic3a1b8424f8ca04564f8228365371b357f33276c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23750
Maintainer: Gabe Black <gabeblack@google.com >
Tested-by: kokoro <noreply+kokoro@google.com >
Reviewed-by: Jason Lowe-Power <jason@lowepower.com >
2020-02-07 07:36:39 +00:00
Jordi Vaquero
4d039064b0
arch-arm: Implement ARMv8.3-JSConv
...
This commit implements Armv8 javascript float point convertion instructions
VJVCT and FJCVTZS.
Change-Id: I1b24839daef775bbb1eb9da5f32c4bb3843e0b28
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25023
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com >
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2020-02-06 22:23:06 +00:00