Unfortunately the page you found is an orphan created during an unfinished
attempt to reorganize the documentation.  The original (complete, though
somewhat out-of-date) documentation is here:
http://www.m5sim.org/ISA_description_system

In particular, the 'format' section is covered here:
http://www.m5sim.org/The_M5_ISA_description_language#Specifying_instruction_formats

Steve


On Sun, Feb 1, 2015 at 4:37 PM, n26001482 via gem5-users <
gem5-users@gem5.org> wrote:

>  Hi, all.
>
> Here's the code in arm.isa file
>
> ---------------------------------------------------------------------
>
>  decode COND_CODE {
> 0xF: ArmUnconditional::armUnconditional();
> default: decode ENCODING {
> format DataOp {
>     0x0: decode SEVEN_AND_FOUR {
>         1: decode MISC_OPCODE {
>             0x9: decode PREPOST {
>                 0: ArmMultAndMultAcc::armMultAndMultAcc();
>                 1: ArmSyncMem::armSyncMem();
>             }
>             0xb, 0xd, 0xf: AddrMode3::addrMode3();
>         }
>  ...
> ...
> ...
>
> ---------------------------------------------------------------------
>
> In line 4, what's the key word "format" ?
>
> I've studied the site, ISA Parser, http://www.m5sim.org/ISA_Parser , but
> get no idea about it.
> I know "decode COND_CODE" in line 1 is like a switch case and the contents
> between the braces
> are the code will be generated.
>
> Does anyone tell me what is format? Any hint will be appreciated.
>
> Best
> M.Y. Lin
>
>
>
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to