From fd48a3695fd182387db041e6dd581fcf9441f49c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 20 Apr 2022 12:27:57 +0000 Subject: [PATCH] sv_binutils: generate fields tables --- src/openpower/sv/sv_binutils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 9d9ce41c..114e7c6f 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -474,6 +474,13 @@ class Codegen(_enum.Enum): yield from indent(num_entries.c_value(suffix=";")) yield "" + for mapping in (Prefix, RM): + name = mapping.__name__.lower() + yield from mapping.c_var(name=f"svp64_{name}_entries", prefix="static ", suffix="[] = \\") + yield from mapping().c_value(suffix=";") + yield "" + yield "" + entries = Entry[...](entries) num_entries = Size("(sizeof (svp64_entries) / sizeof (svp64_entries[0])") -- 2.30.2