gem5.git
16 years agoStatetrace: Fix compilation problem.
Gabe Black [Sun, 29 Jul 2007 03:34:17 +0000 (20:34 -0700)]
Statetrace: Fix compilation problem.

--HG--
extra : convert_revision : 7f501de99e5389dc3a4172654d7cbe32ed811259

16 years agoX86: Fix up auxiliary vectors.
Gabe Black [Sun, 29 Jul 2007 03:33:42 +0000 (20:33 -0700)]
X86: Fix up auxiliary vectors.
The type constants should go into an architecture independent spot since they are universal to all Linux elf binaries. The right value for some of the vectors needs to be determined. Also, x86 does not store argc or argv_array_base in registers like some other architectures.

--HG--
extra : convert_revision : 8d3f6a3e028d881d3c41e8ddf4f29d25738b529c

16 years agoTurn the instruction tracing code into pluggable sim objects.
Gabe Black [Sun, 29 Jul 2007 03:30:43 +0000 (20:30 -0700)]
Turn the instruction tracing code into pluggable sim objects.
These need to be refined a little still and given parameters.

--HG--
extra : convert_revision : 9a8f5a7bd9dacbebbbd2c235cd890c49a81040d7

16 years agoAtomicSimpleCPU: fix inadvertent loss of endian conversion on read.
Steve Reinhardt [Sun, 29 Jul 2007 01:00:05 +0000 (18:00 -0700)]
AtomicSimpleCPU: fix inadvertent loss of endian conversion on read.

--HG--
extra : convert_revision : 367bf2431bf4f4eb7c4d5723816e5db6f7233aed

16 years agostyle: fix whitespace problems
Nathan Binkert [Sun, 29 Jul 2007 00:18:18 +0000 (17:18 -0700)]
style: fix whitespace problems

--HG--
extra : convert_revision : 198d5da436c61384ab2d7a4c8f5124d2440a1034

16 years agomerge whitespace fixes
Nathan Binkert [Sun, 29 Jul 2007 00:17:30 +0000 (17:17 -0700)]
merge whitespace fixes

--HG--
extra : convert_revision : 523dc97eb8fe5de3bbe49ba69b0f17ffbd7fa05a

16 years agostyle: bad whitespace
Nathan Binkert [Sun, 29 Jul 2007 00:17:04 +0000 (17:17 -0700)]
style: bad whitespace

--HG--
extra : convert_revision : 3af834e0a8c9656e0332960c085d9152dd5c3092

16 years agomerge whitespace changes
Nathan Binkert [Sun, 29 Jul 2007 00:06:32 +0000 (17:06 -0700)]
merge whitespace changes

--HG--
extra : convert_revision : 20e8aa51935dc23ac3c7e6da2cb7a4e62c9a3a7c

16 years agostyle: fix stupid bugs
Nathan Binkert [Sat, 28 Jul 2007 23:55:51 +0000 (16:55 -0700)]
style: fix stupid bugs

--HG--
extra : convert_revision : ef3dcc3a160eb19a6c4fcdcd411d392aa42e4efe

16 years agostyle: Check/Fix whitespace on SCons files
Nathan Binkert [Sat, 28 Jul 2007 23:49:20 +0000 (16:49 -0700)]
style: Check/Fix whitespace on SCons files

--HG--
extra : convert_revision : 46e6b2dd8e1984cbab0ea24c94760794734c0f95

16 years agopacket: get rid of unused intersect() function.
Steve Reinhardt [Fri, 27 Jul 2007 19:46:55 +0000 (12:46 -0700)]
packet: get rid of unused intersect() function.

--HG--
extra : convert_revision : f0a2947ccc49e0d18bc17a59371fa396d9ebd6c0

16 years agocache/memtest: fixes for functional accesses.
Steve Reinhardt [Fri, 27 Jul 2007 19:46:45 +0000 (12:46 -0700)]
cache/memtest: fixes for functional accesses.

--HG--
extra : convert_revision : 688ba4d882cad2c96cf44c9e46999f74266e02ee

16 years agocache: Get rid of unused variable.
Steve Reinhardt [Fri, 27 Jul 2007 07:51:15 +0000 (03:51 -0400)]
cache: Get rid of unused variable.

--HG--
extra : convert_revision : 394adc12fbd7ea10280a1b8d6bc3cb15ee019f27

16 years agoMerge python and x86 changes with cache branch
Nathan Binkert [Fri, 27 Jul 2007 06:15:49 +0000 (23:15 -0700)]
Merge python and x86 changes with cache branch

--HG--
extra : convert_revision : e06a950964286604274fba81dcca362d75847233

16 years agoscons: make things work when EXTRAS is not defined.
Nathan Binkert [Fri, 27 Jul 2007 05:45:33 +0000 (22:45 -0700)]
scons: make things work when EXTRAS is not defined.

--HG--
extra : convert_revision : 83562b55ec099e609c64cd42eb47a8481e4e85e7

16 years agoMerge with head.
Gabe Black [Fri, 27 Jul 2007 05:13:48 +0000 (22:13 -0700)]
Merge with head.

--HG--
extra : convert_revision : e4be9d5f2ce8e3252958e2c5e03710b0bf9755c7

16 years agoX86: Fix argument register indexing.
Gabe Black [Fri, 27 Jul 2007 05:13:14 +0000 (22:13 -0700)]
X86: Fix argument register indexing.
Code was assuming that all argument registers followed in order from ArgumentReg0. There is now an ArgumentReg array which is indexed to find the right index. There is a constant, NumArgumentRegs, which can be used to protect against using an invalid ArgumentReg.

--HG--
extra : convert_revision : f448a3ca4d6adc3fc3323562870f70eec05a8a1f

16 years agoX86: Hook in shift and rotate by one instructions, and NOT.
Gabe Black [Fri, 27 Jul 2007 05:10:59 +0000 (22:10 -0700)]
X86: Hook in shift and rotate by one instructions, and NOT.

--HG--
extra : convert_revision : b3ab74e09f5cd02671cc6425c8cb8638bd58cbee

16 years agoX86: Fix pc relative versions of add and subtract.
Gabe Black [Fri, 27 Jul 2007 05:10:21 +0000 (22:10 -0700)]
X86: Fix pc relative versions of add and subtract.

--HG--
extra : convert_revision : c7e578aae8d36aa5d279fc27d6d7d28ed0a54181

16 years agoX86: Implement rotate-by-one instructions, and make register rotates use registers.
Gabe Black [Fri, 27 Jul 2007 05:09:41 +0000 (22:09 -0700)]
X86: Implement rotate-by-one instructions, and make register rotates use registers.

--HG--
extra : convert_revision : 701691951688ecefdc6450d31076b45e9af15324

16 years agoX86: Implement shift-by-one instructions, and make register shifts use registers.
Gabe Black [Fri, 27 Jul 2007 05:09:24 +0000 (22:09 -0700)]
X86: Implement shift-by-one instructions, and make register shifts use registers.

--HG--
extra : convert_revision : ce4af3e56b45821e0a8b27f288b532d2f9dd3336

16 years agoX86: Add functions to read and write to an exec context.
Gabe Black [Fri, 27 Jul 2007 05:08:35 +0000 (22:08 -0700)]
X86: Add functions to read and write to an exec context.
These functions take care of calling the thread contexts read and write functions with the right sized data type, and handle unaligned accesses.

--HG--
extra : convert_revision : b4b59ab2b22559333035185946bae3eab316c879

16 years agoX86: Fix carry calculation for subtraction based microops.
Gabe Black [Fri, 27 Jul 2007 05:06:30 +0000 (22:06 -0700)]
X86: Fix carry calculation for subtraction based microops.
The carry flag should be calculated using the -complement- of the second operand, not it's negation. The carry in which is part of computing the 2's complement may induce a carry, but if you've already caused the carry before you get the carry computing logic involved, it will miss it.

--HG--
extra : convert_revision : 318cf86929664fc52ed9e023606a9e892eba635c

16 years agoAdd functions for mmap and brk.
Gabe Black [Fri, 27 Jul 2007 05:04:33 +0000 (22:04 -0700)]
Add functions for mmap and brk.

--HG--
extra : convert_revision : 3d0340a2aae87b3462d6562b34ac7e02c685c1ef

16 years agoImplement NOT
Gabe Black [Fri, 27 Jul 2007 05:03:19 +0000 (22:03 -0700)]
Implement NOT

--HG--
extra : convert_revision : 09cbed6332224d06644d401f21178eb7914993df

16 years agoHave owner respond to UpgradeReq to avoid race.
Steve Reinhardt [Fri, 27 Jul 2007 00:04:17 +0000 (17:04 -0700)]
Have owner respond to UpgradeReq to avoid race.

--HG--
extra : convert_revision : 30916fca6978c73d8a14558f2d7288c1eab54ad4

16 years agoAdd downward express snoops for invalidations.
Steve Reinhardt [Fri, 27 Jul 2007 00:04:17 +0000 (17:04 -0700)]
Add downward express snoops for invalidations.

--HG--
extra : convert_revision : 4916fa9721d727d8416ad8c07df3a8171d02b2b4

16 years agoContinue snooping after a writeback is encountered.
Steve Reinhardt [Fri, 27 Jul 2007 00:04:16 +0000 (17:04 -0700)]
Continue snooping after a writeback is encountered.

--HG--
extra : convert_revision : 8411338a6c0fdd7072dd32bdffacdace62d5de90

16 years agobus: Fix default port handling.
Steve Reinhardt [Fri, 27 Jul 2007 00:04:12 +0000 (17:04 -0700)]
bus: Fix default port handling.

--HG--
extra : convert_revision : 121b6e31cddff17c51fc4f3df20e7e2bde87d04f

16 years agoAdd a new SCons option called EXTRAS that allows you to include stuff in
Nathan Binkert [Thu, 26 Jul 2007 01:21:11 +0000 (18:21 -0700)]
Add a new SCons option called EXTRAS that allows you to include stuff in
the build process that is outside of the main M5 tree.

--HG--
extra : convert_revision : 6edc4fbc58240f83b59c7b5707c0390cdb85d9ec

17 years agoCan't block on memInhibit packets
Steve Reinhardt [Wed, 25 Jul 2007 14:47:37 +0000 (07:47 -0700)]
Can't block on memInhibit packets
(now that bus no longer filters them for us).

--HG--
extra : convert_revision : 34e7eaf5ee1e739f5557a2d417e569ed2ceb14b3

17 years agoIntegrate snoop loop functions into their respective call sites.
Steve Reinhardt [Wed, 25 Jul 2007 05:37:41 +0000 (22:37 -0700)]
Integrate snoop loop functions into their respective call sites.
Also some additional cleanup of Bus::recvTiming().

--HG--
extra : convert_revision : 156814119f75d04c2e954aec2d7ed6fdc186c26f

17 years agoDon't delete request at target... requester still needs it.
Steve Reinhardt [Wed, 25 Jul 2007 05:36:10 +0000 (22:36 -0700)]
Don't delete request at target... requester still needs it.

--HG--
extra : convert_revision : 76377ca2e4d7ea70d1d54d325a63ce710e260b93

17 years agoMerge with head.
Gabe Black [Tue, 24 Jul 2007 22:48:40 +0000 (15:48 -0700)]
Merge with head.

--HG--
extra : convert_revision : 4a34b3f91c4fc90055596245ae3efec45ea33888

17 years agoHook in a bunch of new instructions, fix a few minor bugs, and expand out one of...
Gabe Black [Tue, 24 Jul 2007 22:43:38 +0000 (15:43 -0700)]
Hook in a bunch of new instructions, fix a few minor bugs, and expand out one of the prefix multiplexed opcode groups.

--HG--
extra : convert_revision : b5afd54a180a8fbdf9a892b1a2316fcf0d11afc6

17 years agoAdd a tgt_iovec structure to support writev, change the name of X86Linux to X86Linux6...
Gabe Black [Tue, 24 Jul 2007 22:42:11 +0000 (15:42 -0700)]
Add a tgt_iovec structure to support writev, change the name of X86Linux to X86Linux64, add some syscalls.

--HG--
extra : convert_revision : 9c13e9c68f331fe6c4a9abd96f7aee0f064101fc

17 years agoAdd a special case for "test" which needs an immediate even though everything else...
Gabe Black [Tue, 24 Jul 2007 22:37:16 +0000 (15:37 -0700)]
Add a special case for "test" which needs an immediate even though everything else with it's opcode doesn't.
Also made some spacing consistent.

--HG--
extra : convert_revision : 72a317f29c11705782e19840bef24354214d3143

17 years agoThe groups of instructions hanging off opcode 71h, 72h, and 73h all need a byte immediate
Gabe Black [Tue, 24 Jul 2007 22:19:02 +0000 (15:19 -0700)]
The groups of instructions hanging off opcode 71h, 72h, and 73h all need a byte immediate

--HG--
extra : convert_revision : 9559047adfec1490c2d40065442a579549624fcc

17 years agoMake the shift and rotate microops mask the shift/rotate amount correctly.
Gabe Black [Tue, 24 Jul 2007 22:10:53 +0000 (15:10 -0700)]
Make the shift and rotate microops mask the shift/rotate amount correctly.

--HG--
extra : convert_revision : 31c5d3fa8ef0d37494d0e35cef31be6056d5d93f

17 years agoFix immediate shifts. Implement register shifts.
Gabe Black [Tue, 24 Jul 2007 22:10:20 +0000 (15:10 -0700)]
Fix immediate shifts. Implement register shifts.

--HG--
extra : convert_revision : 0b83422ad3c190021e46cada07e64d8d57d29859

17 years agoFix immediate rotates and add register ones.
Gabe Black [Tue, 24 Jul 2007 22:08:56 +0000 (15:08 -0700)]
Fix immediate rotates and add register ones.

--HG--
extra : convert_revision : a6b9cee59019ea0f906c8a8e76eeb2cd73093671

17 years agoClean out part of an old comment.
Gabe Black [Tue, 24 Jul 2007 22:08:09 +0000 (15:08 -0700)]
Clean out part of an old comment.

--HG--
extra : convert_revision : 6a6b2a06576ebe7383f7ce0e4e9f96bc96b84b56

17 years agoImplement cmov.
Gabe Black [Tue, 24 Jul 2007 22:07:35 +0000 (15:07 -0700)]
Implement cmov.

--HG--
extra : convert_revision : 2e92623b53c1fe8b4da3fef3486c0dcd8d5ef9f5

17 years agoImplement cdqe and cqo, which are also called cbw and cwde, and cwd and cdq respectiv...
Gabe Black [Tue, 24 Jul 2007 22:07:03 +0000 (15:07 -0700)]
Implement cdqe and cqo, which are also called cbw and cwde, and cwd and cdq respectively, depending on the operand size.

--HG--
extra : convert_revision : 67ac035c68608d7260c21ce32009b344f3834e46

17 years agoImplement setcc.
Gabe Black [Tue, 24 Jul 2007 22:05:17 +0000 (15:05 -0700)]
Implement setcc.

--HG--
extra : convert_revision : 7a47b9971fe9e4ac638b275fb56fdcba08c2d671

17 years agoGet rid of an old comment.
Gabe Black [Tue, 24 Jul 2007 22:04:53 +0000 (15:04 -0700)]
Get rid of an old comment.

--HG--
extra : convert_revision : 1b86a7f60489bc65a03919b27afd4dfbe4e09bba

17 years agoGet rid of an old comment
Gabe Black [Tue, 24 Jul 2007 22:03:43 +0000 (15:03 -0700)]
Get rid of an old comment

--HG--
extra : convert_revision : 4d626721ad54af9cbf5b0c07a3a6e8a05e4e9ab5

17 years agoA couple more minor bug fixes for multilevel coherence.
Steve Reinhardt [Tue, 24 Jul 2007 05:28:40 +0000 (22:28 -0700)]
A couple more minor bug fixes for multilevel coherence.

--HG--
extra : convert_revision : 370f9e34911157765be6fd49e826fa1af589b466

17 years agoMajor changes to how SimObjects are created and initialized. Almost all
Nathan Binkert [Tue, 24 Jul 2007 04:51:38 +0000 (21:51 -0700)]
Major changes to how SimObjects are created and initialized.  Almost all
creation and initialization now happens in python.  Parameter objects
are generated and initialized by python.  The .ini file is now solely for
debugging purposes and is not used in construction of the objects in any
way.

--HG--
extra : convert_revision : 7e722873e417cb3d696f2e34c35ff488b7bff4ed

17 years agoAllow the fixwhite stuff to work when committing from a subdir
Nathan Binkert [Tue, 24 Jul 2007 03:55:57 +0000 (20:55 -0700)]
Allow the fixwhite stuff to work when committing from a subdir

--HG--
extra : convert_revision : 10e6ecc60bb8ee4e4a6f06f8c56550299c262c91

17 years agoImplement pusha, popa, three operand imul, hook them into the decoder, and clean...
Gabe Black [Mon, 23 Jul 2007 18:20:57 +0000 (11:20 -0700)]
Implement pusha, popa, three operand imul, hook them into the decoder, and clean up the decoder a little.

--HG--
extra : convert_revision : c1b8f0f433f629e4104e2b04addcdaabf57595e3

17 years agoFix WriteReq/StoreCondReq setting in O3.
Steve Reinhardt [Mon, 23 Jul 2007 15:18:51 +0000 (08:18 -0700)]
Fix WriteReq/StoreCondReq setting in O3.

--HG--
extra : convert_revision : b41571535f3d1f78df3cb6e48c16de5c7549d87f

17 years agoReplace lowerMSHRPending flag with more robust scheme
Steve Reinhardt [Mon, 23 Jul 2007 04:43:38 +0000 (21:43 -0700)]
Replace lowerMSHRPending flag with more robust scheme
based on following Packet senderState links.

--HG--
extra : convert_revision : 9027d59bd7242aa0e4275bf94d8b1fb27bd59d79

17 years agoMake the operand size reflect the size specifier on the operand tags, and implement NEG
Gabe Black [Mon, 23 Jul 2007 01:07:49 +0000 (01:07 +0000)]
Make the operand size reflect the size specifier on the operand tags, and implement NEG

--HG--
extra : convert_revision : da73ed6820d57f083c18f44b2fa868fc0976dd16

17 years agoMerge from head.
Steve Reinhardt [Sun, 22 Jul 2007 22:02:40 +0000 (18:02 -0400)]
Merge from head.

--HG--
extra : convert_revision : dd23c568b3777fed7973401b6cf035f5a14f12f3

17 years agodo proper style checks for merged files
Nathan Binkert [Sun, 22 Jul 2007 20:45:12 +0000 (13:45 -0700)]
do proper style checks for merged files

--HG--
extra : convert_revision : f9d4c61ded4b13655dbe86f0bb6a0b3beaf45151

17 years agofix the style fixing thing
Nathan Binkert [Sun, 22 Jul 2007 16:08:05 +0000 (09:08 -0700)]
fix the style fixing thing

--HG--
extra : convert_revision : 65ffc14e7b78b49df9a67ef0d3521551dd44d1cd

17 years agoMerge more changes in from head.
Steve Reinhardt [Sun, 22 Jul 2007 15:10:59 +0000 (08:10 -0700)]
Merge more changes in from head.

--HG--
extra : convert_revision : 8f170f2754eccdb424a35b5b077225abcf6eee72

17 years agoReplace DeferredSnoop flag with LowerMSHRPending flag.
Steve Reinhardt [Sun, 22 Jul 2007 15:09:24 +0000 (08:09 -0700)]
Replace DeferredSnoop flag with LowerMSHRPending flag.
Turns out DeferredSnoop isn't quite the right bit of info
we needed... see new comment in cache_impl.hh.

--HG--
extra : convert_revision : a38de8c1677a37acafb743b7074ef88b21d3b7be

17 years agoMerge Gabe's changes with mine.
Steve Reinhardt [Sun, 22 Jul 2007 14:40:45 +0000 (10:40 -0400)]
Merge Gabe's changes with mine.

--HG--
extra : convert_revision : f50ed42e7acb3f11e610fd6976eaa8df0c6ba2ab

17 years agoA few minor non-debug compilation issues.
Steve Reinhardt [Sun, 22 Jul 2007 07:07:26 +0000 (03:07 -0400)]
A few minor non-debug compilation issues.

--HG--
extra : convert_revision : d59a5cad6187a2229dddd1a48282ebd2923d1d8d

17 years agoAdd the "open" syscall.
Gabe Black [Sun, 22 Jul 2007 02:43:03 +0000 (02:43 +0000)]
Add the "open" syscall.

--HG--
extra : convert_revision : d405ed5d3738639809dd2887955db9253138ccbb

17 years agoFixed immediate byte accounting bug.
Gabe Black [Sun, 22 Jul 2007 02:34:52 +0000 (02:34 +0000)]
Fixed immediate byte accounting bug.

--HG--
extra : convert_revision : ee5275da14a2923b9a525ae5b5c582c15df4608a

17 years agoFixed displacement size bug.
Gabe Black [Sun, 22 Jul 2007 02:23:03 +0000 (02:23 +0000)]
Fixed displacement size bug.

--HG--
extra : convert_revision : c39249ef598c1bd555098d688381dc62541a07c0

17 years agoMerge with head.
Gabe Black [Sun, 22 Jul 2007 05:49:57 +0000 (22:49 -0700)]
Merge with head.

--HG--
extra : convert_revision : 9b82ba062a14032ef24b960b92d48de754463284

17 years agoAdd code to turn the style stuff into a mercurial hook.
Nathan Binkert [Sun, 22 Jul 2007 05:33:08 +0000 (22:33 -0700)]
Add code to turn the style stuff into a mercurial hook.
Nag the user during compile if they have an hg cloned copy of M5, have
mercurial installed, but don't have the style hook enabled.

--HG--
extra : convert_revision : 6bcbb67f1a3fcd36db7d3ef16a9ff19680f126f2

17 years agoImplemented and hooked in xchg, rotate with carry, and ret instructions
Gabe Black [Sun, 22 Jul 2007 02:29:39 +0000 (19:29 -0700)]
Implemented and hooked in xchg, rotate with carry, and ret instructions

--HG--
extra : convert_revision : a8e67b0ab4072308f01e0df7f7ee05b31f605a35

17 years agoImplement rotate with carry microops.
Gabe Black [Sun, 22 Jul 2007 02:27:38 +0000 (19:27 -0700)]
Implement rotate with carry microops.

--HG--
extra : convert_revision : 1d7ff6611e5b4766a5257c1e73681fabbe5f6d76

17 years agoDeal with invalidations intersecting outstanding upgrades.
Steve Reinhardt [Sun, 22 Jul 2007 01:18:42 +0000 (18:18 -0700)]
Deal with invalidations intersecting outstanding upgrades.
If the invalidation beats the upgrade at a lower level
then the upgrade must be converted to a read exclusive
"in the field".
Restructure target list & deferred target list to
factor out some common code.

--HG--
extra : convert_revision : 7bab4482dd6c48efdb619610f0d3778c60ff777a

17 years agoSeveral more fixes for multi-level timing coherence.
Steve Reinhardt [Sat, 21 Jul 2007 20:45:17 +0000 (13:45 -0700)]
Several more fixes for multi-level timing coherence.
- Add "deferred snoop" flag to Packet so upper-level caches
  can distinguish whether lower-level cache request was
  in-service or not at the time of the original snoop.
- Revamp response handling to properly handle deferred snoops
  on non-cache-fill requests (i.e. upgrades).
- Make sure forwarded writebacks are kept in write buffer at
  lower-level caches so they get snooped properly.

--HG--
extra : convert_revision : 17f8a3772a1ae31a16991a53f8225ddf54d31fc9

17 years agoFixed the distinction between far and near versions of jmp, call and ret. Implemented...
Gabe Black [Sat, 21 Jul 2007 06:16:03 +0000 (23:16 -0700)]
Fixed the distinction between far and near versions of jmp, call and ret. Implemented some shifts, rotates, and pushes.

--HG--
extra : convert_revision : fcb06189ff213e82da16ac43231feb308cb3a285

17 years agoFixed line number accounting
Gabe Black [Sat, 21 Jul 2007 06:12:26 +0000 (23:12 -0700)]
Fixed line number accounting

--HG--
extra : convert_revision : 4c046493b98ce4a766c2121710d70650cb6a801e

17 years agoImplement UD2 and replace the place holder in the decoder.
Gabe Black [Sat, 21 Jul 2007 01:27:02 +0000 (18:27 -0700)]
Implement UD2 and replace the place holder in the decoder.

--HG--
extra : convert_revision : 16d0d2b2ddad8759698fa4aa668c22063307c72b

17 years agoMake the "name" function const.
Gabe Black [Sat, 21 Jul 2007 01:24:46 +0000 (18:24 -0700)]
Make the "name" function const.

--HG--
extra : convert_revision : eb71bc3edd92a544a5333786635fce550aaef233

17 years agoImplement adc and sbb instructions and microops.
Gabe Black [Sat, 21 Jul 2007 00:17:11 +0000 (17:17 -0700)]
Implement adc and sbb instructions and microops.

--HG--
extra : convert_revision : a2d3068c5b487f4fa7bf5c9cebba7753bc390bfa

17 years agoImplement the rest of the conditional jump instructions and hook them into the decoder.
Gabe Black [Sat, 21 Jul 2007 00:02:39 +0000 (17:02 -0700)]
Implement the rest of the conditional jump instructions and hook them into the decoder.

--HG--
extra : convert_revision : 8d1d6abce29371def560e1c3f31dabb4de01366f

17 years agoMake the decoder take advantage of the new "B" operand format which takes a register...
Gabe Black [Fri, 20 Jul 2007 23:48:59 +0000 (16:48 -0700)]
Make the decoder take advantage of the new "B" operand format which takes a register index from the opcode itself.

--HG--
extra : convert_revision : 35f9be6559ee9833049eda1817982efdde7082be

17 years agoDefine and fill out a lot of different instructions and instruction versions. Added...
Gabe Black [Fri, 20 Jul 2007 23:39:07 +0000 (16:39 -0700)]
Define and fill out a lot of different instructions and instruction versions. Added two of the shift microops.

--HG--
extra : convert_revision : 0b76953dbb1dc3366242d4d209cccebde86bbe4e

17 years agoHook in newly implemented instructions.
Gabe Black [Fri, 20 Jul 2007 22:05:37 +0000 (15:05 -0700)]
Hook in newly implemented instructions.

--HG--
extra : convert_revision : 53319d2363211af407dabaa2b63ad8a4df09c369

17 years agoComment, implement, fix, and trim the move microassembly.
Gabe Black [Fri, 20 Jul 2007 22:04:41 +0000 (15:04 -0700)]
Comment, implement, fix, and trim the move microassembly.

--HG--
extra : convert_revision : aa5ee7270e740bfbe42e70c4dfccc4c91ecacb33

17 years agoImplement jnbe.
Gabe Black [Fri, 20 Jul 2007 22:03:36 +0000 (15:03 -0700)]
Implement jnbe.

--HG--
extra : convert_revision : cdbf1ff5ed3a63787cbd2187a8a3455a41cc5085

17 years agoAppended _NEAR to the near version of call and return.
Gabe Black [Fri, 20 Jul 2007 22:03:03 +0000 (15:03 -0700)]
Appended _NEAR to the near version of call and return.

--HG--
extra : convert_revision : 70adb38d59ff7b5d103e58a9f0773dfb911fec6d

17 years agoMake load and store ops use the appropriate sized data access.
Gabe Black [Fri, 20 Jul 2007 22:02:09 +0000 (15:02 -0700)]
Make load and store ops use the appropriate sized data access.

--HG--
extra : convert_revision : 6b808586fab10ca433ef04b062bf701b906634b9

17 years agoImplement the increment and decrement instructions, and the two operand form of signe...
Gabe Black [Fri, 20 Jul 2007 21:59:14 +0000 (14:59 -0700)]
Implement the increment and decrement instructions, and the two operand form of signed multiplication.

--HG--
extra : convert_revision : d87df4b1b5470bed1d963dfe8e2ffa1403718342

17 years agoFix code that computes displacement size.
Gabe Black [Fri, 20 Jul 2007 21:57:34 +0000 (14:57 -0700)]
Fix code that computes displacement size.

--HG--
extra : convert_revision : a9be3eb2b90b88086936aeb4dcf87ec7b58a48cb

17 years agoAdd a bitfield to decode based on what prefixes are used.
Gabe Black [Fri, 20 Jul 2007 21:57:04 +0000 (14:57 -0700)]
Add a bitfield to decode based on what prefixes are used.

--HG--
extra : convert_revision : 7ff4998b3249ccfe86ae9cbcc63fb910683707f5

17 years agoAdd a parameter type to read a register index from the opcode itself.
Gabe Black [Fri, 20 Jul 2007 21:55:16 +0000 (14:55 -0700)]
Add a parameter type to read a register index from the opcode itself.

--HG--
extra : convert_revision : d2b5468ebf5df5a6ccadb57a30c52c8d16417b9a

17 years agoFix function which calculates the carry flag.
Gabe Black [Fri, 20 Jul 2007 21:54:17 +0000 (14:54 -0700)]
Fix function which calculates the carry flag.

--HG--
extra : convert_revision : aeb4f2d4c3936089421dbe80647f28ae36178283

17 years agoFix carry flag for subtracts, and clean up code slightly.
Gabe Black [Fri, 20 Jul 2007 21:53:38 +0000 (14:53 -0700)]
Fix carry flag for subtracts, and clean up code slightly.

--HG--
extra : convert_revision : 668f5d5aeba888488b41284de6c72a0d055c4ef4

17 years agoFixed width parameter and provided a parameter to flip the carry bit on subtract.
Gabe Black [Fri, 20 Jul 2007 21:52:44 +0000 (14:52 -0700)]
Fixed width parameter and provided a parameter to flip the carry bit on subtract.

--HG--
extra : convert_revision : d01bb791b000a2fdfc8600f8fb2f8aadd52b0b63

17 years agox86 fixes
Gabe Black [Thu, 19 Jul 2007 22:15:47 +0000 (15:15 -0700)]
x86 fixes
Make the emulation environment consider the rex prefix.
Implement and hook in forms of j, jmp, cmp, syscall, movzx
Added a format for an instruction to carry a call to the SE mode syscalls system
Made memory instructions which refer to the rip do so directly
Made the operand size overridable in the microassembly
Made the "ext" field of register operations 16 bits to hold a sparse encoding of flags to set or conditions to predicate on
Added an explicit "rax" operand for the syscall format
Implemented syscall returns.

--HG--
extra : convert_revision : ae84bd8c6a1d400906e17e8b8c4185f2ebd4c5f2

17 years agoCheck for the two opcode prefix correctly and add in some instructions.
Gabe Black [Thu, 19 Jul 2007 00:51:05 +0000 (17:51 -0700)]
Check for the two opcode prefix correctly and add in some instructions.

--HG--
extra : convert_revision : 751e54843f5c81b81529050a1ae9d46d07c36e97

17 years agoHook near returns into the decoder.
Gabe Black [Thu, 19 Jul 2007 00:48:16 +0000 (17:48 -0700)]
Hook near returns into the decoder.

--HG--
extra : convert_revision : b38d4417552991e44f5d1de1f35d5d1ad8f32340

17 years agoImplement near returns.
Gabe Black [Thu, 19 Jul 2007 00:47:40 +0000 (17:47 -0700)]
Implement near returns.

--HG--
extra : convert_revision : 3d6e8a976d31cb016a4b78200716b0ece155137a

17 years agoMake instructions that conditionally set registers set them to their old value if...
Gabe Black [Thu, 19 Jul 2007 00:46:38 +0000 (17:46 -0700)]
Make instructions that conditionally set registers set them to their old value if they don't actually execute.

--HG--
extra : convert_revision : 36e63dd0c6ac1a3e1133c7985cf5507b83e9ee45

17 years agoFix the overload which prints ExtMachInst in X86.
Gabe Black [Thu, 19 Jul 2007 00:45:43 +0000 (17:45 -0700)]
Fix the overload which prints ExtMachInst in X86.

--HG--
extra : convert_revision : 2ef8ee71999f36b09270ba9526c2846beda65051

17 years agoMake store microops actually store instead of load.
Gabe Black [Thu, 19 Jul 2007 00:45:06 +0000 (17:45 -0700)]
Make store microops actually store instead of load.

--HG--
extra : convert_revision : fe90f8adc96dd0e680cfa45e4c510a906046ae3d

17 years agoFix a comment to refer to the right type of instruction.
Gabe Black [Thu, 19 Jul 2007 00:44:12 +0000 (17:44 -0700)]
Fix a comment to refer to the right type of instruction.

--HG--
extra : convert_revision : dd441d8fbaed1ed8b2b66e3ad0275009bd4dcef4

17 years agoFix the panic in the "error" format for x86,
Gabe Black [Thu, 19 Jul 2007 00:43:30 +0000 (17:43 -0700)]
Fix the panic in the "error" format for x86,

--HG--
extra : convert_revision : bd0715b5b63665f9160082d67c5b5d90d2405c5c

17 years agoImplement some forms of add.
Gabe Black [Wed, 18 Jul 2007 23:33:56 +0000 (16:33 -0700)]
Implement some forms of add.

--HG--
extra : convert_revision : adbff2e9b9952ec09853cc43d40243e7262410a7