Hello,

I am trying to run an alpha assembly program in M5. I just wrote a few
line asm program (test01.asm) and tried to compile it with the alpha
cross compiler:

crosscompilers/ALPHA/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-as

        
It is able to compile without any warnings or errors, but when I try
running in using Alpha_SE/m5.opt I get the following error:

m5.opt: build/ALPHA_SE/base/loader/elf_object.cc:351:
ElfObject::ElfObject(const std::string&, int, size_t, uint8_t*,
ObjectFile::Arch, ObjectFile::OpSys): Assertion `text.size != 0'
failed.
Program aborted at cycle 0
Aborted


My command line is: command line: ./build/ALPHA_SE/m5.opt
./configs/example/se.py -c ../alpha_programs/asm/a.out

My test program is as follows:

test01.asm:


        .align 4
        .file 1 "test01.asm"
        .loc 1 2
        .globl main
        .ent     main

main:

             lda   $4, 15($31) # $31 is 0, 0xF
             addl  $4, 1, $1
             and   $4, 0XFF
             halt
             .end main

Do I need to modify the config script to run asm binaries, or is there
something else that I am missing?

Thanks.

Malek
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to