assembler: Unify adding options to the header
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 30 Jan 2013 23:00:26 +0000 (23:00 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:41 +0000 (15:54 +0000)
commitbca2ff2a0229c6ddf29221fee71b45a12e941640
treefb7ccdcc32e4e034536bcb7cf3018427ca9e7941
parentdfe6adacc923336fa1e98b781ff67abaada29b95
assembler: Unify adding options to the header

Right now we have duplicated code for when the option is the last in the
list or not. Put that code in a common function.

Interestingly it appears that both sides haven't been kept in sync and
that EOT and ACCWRCTRL had limitations on where they had to be in the
option list. It's fixed now!

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
assembler/gram.y