opflags: Rework opflags bits with OP_ macros
commit6e8bbfb62c1e5f97844852d43623037b8151fb91
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 15 Sep 2012 16:01:32 +0000 (15 20:01 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 16 Sep 2012 19:23:56 +0000 (16 23:23 +0400)
tree0f4d10d00535036bbae306d641fdc022cbd0c562
parent220ac6544c857f37be9b54f44e6805494493136c
opflags: Rework opflags bits with OP_ macros

In this path the opflags bits are completely reworked
in a sake of simplier extension. Inparticular for Knights
Corener instructions we will need new registers and new
sizes.

What's done

 - all bits are grouped in sequences, and start using OP_
   macros, thus if one need to extend some field -- just
   tune up @shift and @bits where needed

 - the #define we use in code are OR'ed in symbols, this
   should be a way more convenient to deal with instead of
   pure hex numbers.

The tests are passed but more eyes needed to review this
rather big and intrusive patch. The reason why it's done
in one single path -- for revertability in one command.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
opflags.h