decodetree: Allow !function with no input bits

Call this form a "parameter", returning a value extracted
from the DisasContext.

Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2019-07-22 17:02:56 -07:00
parent 3fbd3405d2
commit 94597b6146
4 changed files with 56 additions and 12 deletions

View file

@ -0,0 +1,6 @@
# This work is licensed under the terms of the GNU LGPL, version 2 or later.
# See the COPYING.LIB file in the top-level directory.
# "Field" as parameter pulled from DisasContext.
%foo !function=foo
foo 00000000000000000000000000000000 %foo