Skip to content

Commit

Permalink
Implement PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeratec committed Jan 9, 2025
1 parent 296eef7 commit 79c39c8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: Feature request
about: Suggest an idea for Deeploy
about: Suggest an idea for Chimera-SDK
title: ''
labels: enhancement
assignees: ''

---

## Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A clear and concise description of what the problem is. Ex. The process to do X is very lengthy. By adding Y, we could make X be much faster.

## Describe the solution you'd like
A clear and concise description of what you want to happen.
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ help:
@echo ""
@echo "Available Targets:"
@echo " - format: Format all code"
@echo " - setup: Install dependencies"

setup:
@echo "Installing dependencies..."
@pip install -r requirements.txt

format:
@echo "Formatting code..."
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ The documentation for a specific branch can be accessed via `https://pulp-platfo
## Contributing
### Formatting
To simplify formatting of the code, we provide a Makefiles target that runs clang-format on all source files.
To install all required dependencies and run the formatter run:
We recomment that you setup a virtual environment and install the required dependencies using the following commands:

```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
Alternatively you can also use any mamba/conda environment.

Then, to format the code, run the following command:

```bash
make setup
make format
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include "trampoline_snitchCluster.h"

uint32_t *clintPointer = (uint32_t *)CLINT_CTRL_BASE;

/**
* @brief Interrupt handler for the cluster, which clears the interrupt flag for the current hart.
*
Expand All @@ -26,18 +24,19 @@ __attribute__((naked)) void clusterInterruptHandler() {
"csrr t0, mhartid\n"
// Load the base address of clintPointer into t1
// "lw t1, %0\n"
"lui t1, %%hi(clintPointer)\n"
"addi t1, t1, %%lo(clintPointer)\n"

// Load clint base address into t1
"la t1, __base_clint\n"

// Calculate the interrupt target address: t1 = t1 + (t0 * 4)
"slli t0, t0, 2\n"
"add t1, t1, t0\n"
// Store 0 to the interrupt target address
"sw zero, 0(t1)\n"
"ret"
: // No outputs
: "m"(clintPointer) // Pass clintPointer as input
: "t0", "t1" // Declare clobbered registers
: // No outputs
: // No inputs
: "t0", "t1" // Declare clobbered registers
);
}

Expand Down

0 comments on commit 79c39c8

Please sign in to comment.