On Sat, Jul 25, 2015 at 6:19 AM, Virendra Kumar Pathak kumarvir.pathak@gmail.com wrote:
- Please help me in knowing what I am doing wrong here ? What else I should
do to add a new instruction in binutils ?
I don't know offhand, but see below.
- I also saw some printf in opcodes/aarch64-gen.c which I guess create
decoding tree (initialize_decoder_tree()). How to print them ? I made debug =1 but still print is not coming.
It looks like it prints debug info to stdout, so the debugging info is in the output files like aarch64-asm-2.c.
- There are some auto-generated files like aarch64-asm-2.c,
aarch64-dis-2.c. How to re-generate them ?
Use --enable-maintainer-mode when running configure. This enables makefiles rules for the auto-generated sources. These are normally disabled by default to make it easier to build the source tree. With this enabled, you may need extra utilities installed for a build to work, especially if you haven't been careful about preserving file timestamps. This enables rules to generate flex/bison output files, and autoconf/automake output files, and files like aarch64-asm-2.c.
If you didn't do this before modifying aarch64-tbl.h, then this may be why your changes aren't working. With --enable-maintainer-mode, changing aarcht64-tbl.h will automatically rebuild aarch64-gen on the next make, and that will then automatically be rerun to regenerate files like aarch64-asm-2.c.
Jim