Skip to content
Commits on Oct 13, 2011
  1. @penberg

    Fix broken LLVM include

    There's no llvm/ModuleProvider.h include in Fedora 15 LLVM package so kill the
    include to fix broken build.
    
    Acked-by: Gianluca Guida <glguida@me.com>
    Signed-off-by: Pekka Enberg <penberg@kernel.org>
    penberg committed Oct 13, 2011
  2. @penberg

    Fix printf format strings on 64-bit architectures

    Acked-by: Gianluca Guida <glguida@me.com>
    Signed-off-by: Pekka Enberg <penberg@kernel.org>
    penberg committed Oct 13, 2011
  3. @penberg

    Fix missing <stddef.h> includes

    This patch fixes tons of compilation errors like this on 64-bit Fedora:
    
    /home/penberg/libcpu/libcpu/idbg.cpp:231:15: error: ‘ptrdiff_t’ does not name a type
    
    Signed-off-by: Pekka Enberg <penberg@kernel.org>
    penberg committed Oct 13, 2011
Commits on Oct 12, 2011
  1. @penberg

    Fix compilation with LLVM 2.8

    This patch fixes various issues to make libcpu compile with LLVM 2.8.
    
    Signed-off-by: Pekka Enberg <penberg@kernel.org>
    penberg committed Oct 13, 2011
  2. @penberg

    Fix type conflict in libcpu/types.h on 64-bit Linux

    This patch is a quick and dirty fix for the following build issue on 64-bit
    Linux:
    
      In file included from /home/penberg/libcpu/libcpu/libcpu.h:23:0,
                       from /home/penberg/libcpu/arch/arm/arm_arch.cpp:9:
      /home/penberg/libcpu/libcpu/types.h:16:28: error: conflicting declaration ‘typedef long long unsigned int uint64_t’
      /usr/include/stdint.h:56:27: error: ‘uint64_t’ has a previous declaration as ‘typedef long unsigned int uint64_t’
      make[3]: *** [arch/arm/CMakeFiles/arm.dir/arm_arch.cpp.o] Error 1
      In file included from /home/penberg/libcpu/libcpu/libcpu.h:23:0,
                       from /home/penberg/libcpu/arch/arm/arm_translate.cpp:9:
      /home/penberg/libcpu/libcpu/types.h:16:28: error: conflicting declaration ‘typedef long long unsigned int uint64_t’
      /usr/include/stdint.h:56:27: error: ‘uint64_t’ has a previous declaration as ‘typedef long unsigned int uint64_t’
    
    Proper fix is to use <stdint.h> instead of redefining uint64_t ourselves.
    
    Signed-off-by: Pekka Enberg <penberg@kernel.org>
    penberg committed Oct 12, 2011
Commits on Apr 26, 2010
  1. @penberg

    x86: Fix opcode group decoding logic

    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 26, 2010
  2. @penberg

    x86: Fix instruction assembly mnemonics

    As pointed out by James Abbatiello:
    
      Mechanical sorting seems to have let you down.
    
      From x86_disasm.cpp:
    
          /* [INSTR_CMPSB] */     "cmpsb",
          /* [INSTR_CMPSW] */     "cmpsw",
          /* [INSTR_CMP] */     "cmp",
    
      From x86_isa.h:
          INSTR_CMP,
          INSTR_CMPSB,
          INSTR_CMPSW,
    
      The problem here is that ASCII ',' comes before A-Z but ASCII ']' comes after.
    
    Fix that up by introducing a single list of instructions in x86_instr.h header
    file.
    
    Suggested-by: James Abbatiello <abbeyj@gmail.com>
    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 26, 2010
Commits on Apr 25, 2010
  1. @penberg

    x86: Clean up opcode group decoding

    This patch removes INSTR_SHIFT_GRP2 and introduces GROUP_2 instruction flag to
    clean up opcode group decoding and disassembly code.
    
    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 25, 2010
  2. @penberg

    x86: Decoding for opcode 0xe8 ("call")

    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 25, 2010
  3. @penberg

    x86: Decoding for opcode 0xc1 ("shift group 2")

    Opcode 0xc1 is the full width version of opcode 0xc0.
    
    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 25, 2010
  4. @penberg

    x86: Fix addressing mode disasm to follow AT&T syntax

    AT&T syntax uses "(reg,reg)" convention instead of "(reg+reg)".
    
    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 25, 2010
  5. @penberg

    x86: Decoding for opcode 0xc0 ("shift group 2")

    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 25, 2010
  6. @penberg

    x86: Add Makefile and source code for i8086.bin

    Move the i8086.bin file up one directory and add Makefile and sources for it to
    make it easier to add new test cases.
    
    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 25, 2010
  7. @penberg

    Add a README file to top-level directory

    People expect to find full build instructions in a top-level README file so add
    one.
    
    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
    penberg committed Apr 25, 2010
Commits on Feb 15, 2010
  1. @tienex

    [EXPERIMENTAL/WIP] upcl - support automatic temporary variables (loca…

    …ls) on assignment.
    tienex committed Feb 15, 2010
  2. @tienex

    Oops

    tienex committed Feb 15, 2010
  3. @tienex
Commits on Jan 26, 2010
  1. GCC likes newlines before EOF.

    Axel Auweter committed Jan 26, 2010
Commits on Jan 21, 2010
  1. @tienex

    [EXPERIMENTAL/WIP] upcl

    - Add %OFTRAP ( eval_expr, trapno_expr ) pseudo instruction.
    - Add select statements (ie. x > y ? x : y).
    - Generate compilable code
    
    [libcpu] Mark deprecated frontend interfaces.
    tienex committed Jan 21, 2010
Commits on Jan 18, 2010
  1. Try to resolve calls statically.

    Tilmann Scheller committed Jan 18, 2010
Commits on Jan 17, 2010
  1. @tienex
  2. merge ppc branch and files into trunk

    stevi committed Jan 17, 2010
  3. @mist64

    fix build on Mac

    mist64 committed Jan 17, 2010
  4. Add FAPRA architecture to fib.cpp.

    Tilmann Scheller committed Jan 17, 2010
  5. Add preliminary disassembler.

    Tilmann Scheller committed Jan 17, 2010
  6. Add little endian memory access function.

    Tilmann Scheller committed Jan 17, 2010
  7. Add the FAPRA architecture in a few more places.

    Tilmann Scheller committed Jan 17, 2010
  8. User proper return type.

    Tilmann Scheller committed Jan 17, 2010
  9. Used the wrong macro to implement NOT.

    Tilmann Scheller committed Jan 17, 2010
  10. Remove obsolete template code.

    Tilmann Scheller committed Jan 17, 2010
  11. Implement a few more instructions.

    Tilmann Scheller committed Jan 17, 2010
  12. Add translation of a few more instructions.

    Tilmann Scheller committed Jan 17, 2010
  13. Add initial tagging code.

    Tilmann Scheller committed Jan 17, 2010
  14. Add fapra frontend to the build system.

    Tilmann Scheller committed Jan 17, 2010
Something went wrong with that request. Please try again.